forked from quic-go/quic-go
update Go to 1.16, drop support for 1.14
This commit is contained in:
11
stream.go
11
stream.go
@@ -1,6 +1,8 @@
|
||||
package quic
|
||||
|
||||
import (
|
||||
"net"
|
||||
"os"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
@@ -10,6 +12,15 @@ import (
|
||||
"github.com/lucas-clemente/quic-go/internal/wire"
|
||||
)
|
||||
|
||||
type deadlineError struct{}
|
||||
|
||||
func (deadlineError) Error() string { return "deadline exceeded" }
|
||||
func (deadlineError) Temporary() bool { return true }
|
||||
func (deadlineError) Timeout() bool { return true }
|
||||
func (deadlineError) Unwrap() error { return os.ErrDeadlineExceeded }
|
||||
|
||||
var errDeadline net.Error = &deadlineError{}
|
||||
|
||||
// The streamSender is notified by the stream about various events.
|
||||
type streamSender interface {
|
||||
queueControlFrame(wire.Frame)
|
||||
|
||||
Reference in New Issue
Block a user