forked from quic-go/quic-go
reduce the Retry token expiry time to 10 seconds
The expiry time used to be 24 hours before. The reason for this long duration was that this included tokens that were issued to be used between separate connections in gQUIC. At the moment, we are only generating tokens for Retry packets, i.e. within a single connection. They are therefore expected to be used within a single round trip.
This commit is contained in:
@@ -189,7 +189,7 @@ type Config struct {
|
||||
IdleTimeout time.Duration
|
||||
// AcceptToken determines if a Token is accepted.
|
||||
// It is called with token = nil if the client didn't send a token.
|
||||
// If not set, it verifies that the address matches, and that the token was issued within the last 24 hours.
|
||||
// If not set, it verifies that the address matches, and that the token was issued within the last 5 seconds.
|
||||
// This option is only valid for the server.
|
||||
AcceptToken func(clientAddr net.Addr, token *Token) bool
|
||||
// MaxReceiveStreamFlowControlWindow is the maximum stream-level flow control window for receiving data.
|
||||
|
||||
Reference in New Issue
Block a user