Merge pull request #2930 from lucas-clemente/handshake-idle-timeout

introduce a quic.Config.HandshakeIdleTimeout, remove HandshakeTimeout
This commit is contained in:
Marten Seemann
2020-12-15 08:35:44 +07:00
committed by GitHub
15 changed files with 116 additions and 55 deletions

View File

@@ -98,6 +98,9 @@ const MinRemoteIdleTimeout = 5 * time.Second
// DefaultIdleTimeout is the default idle timeout
const DefaultIdleTimeout = 30 * time.Second
// DefaultHandshakeIdleTimeout is the default idle timeout used before handshake completion.
const DefaultHandshakeIdleTimeout = 5 * time.Second
// DefaultHandshakeTimeout is the default timeout for a connection until the crypto handshake succeeds.
const DefaultHandshakeTimeout = 10 * time.Second