mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
set the handshake timeout to twice the handshake idle timeout (#4063)
This commit is contained in:
parent
54b76ceb3e
commit
e1fcac3e46
6 changed files with 7 additions and 15 deletions
|
@ -108,9 +108,6 @@ 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
|
||||
|
||||
// MaxKeepAliveInterval is the maximum time until we send a packet to keep a connection alive.
|
||||
// It should be shorter than the time that NATs clear their mapping.
|
||||
const MaxKeepAliveInterval = 20 * time.Second
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue