forked from quic-go/quic-go
don't use an idle timeout before the handshake has completed
This simplifies the timeout logic a bit. Before the handshake has completed, the only timeout is the handshake timeout. After the handshake has completed, the only timeout is the idle connection timeout.
This commit is contained in:
@@ -102,7 +102,6 @@ type Config struct {
|
||||
HandshakeTimeout time.Duration
|
||||
// IdleTimeout is the maximum duration that may pass without any incoming network activity.
|
||||
// This value only applies after the handshake has completed.
|
||||
// Before that, the idle timeout is set to half the duration of the HandshakeTimeout.
|
||||
// If the timeout is exceeded, the connection is closed.
|
||||
// If this value is zero, the timeout is set to 30 seconds.
|
||||
IdleTimeout time.Duration
|
||||
|
||||
Reference in New Issue
Block a user