forked from quic-go/quic-go
use the os.ErrDeadlineExceeded for stream deadline errors on Go 1.15
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package quic
|
||||
|
||||
import (
|
||||
"net"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
@@ -74,14 +73,6 @@ type stream struct {
|
||||
|
||||
var _ Stream = &stream{}
|
||||
|
||||
type deadlineError struct{}
|
||||
|
||||
func (deadlineError) Error() string { return "deadline exceeded" }
|
||||
func (deadlineError) Temporary() bool { return true }
|
||||
func (deadlineError) Timeout() bool { return true }
|
||||
|
||||
var errDeadline net.Error = &deadlineError{}
|
||||
|
||||
type streamCanceledError struct {
|
||||
error
|
||||
errorCode protocol.ApplicationErrorCode
|
||||
|
||||
Reference in New Issue
Block a user