Skip to content

Commit 0f74749

Browse files
committed
proxy: set maxQUICIdleTimeout
1 parent f00d992 commit 0f74749

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

proxy/serverquic.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@ const NextProtoDQ = "doq"
3232
// includes previous drafts.
3333
var compatProtoDQ = []string{NextProtoDQ, "doq-i02", "doq-i00", "dq"}
3434

35-
// maxQUICIdleTimeout is maximum QUIC idle timeout. The default value in
36-
// quic-go is 30 seconds, but our internal tests show that a higher value works
37-
// better for clients written with ngtcp2.
38-
const maxQUICIdleTimeout = 5 * time.Minute
35+
// maxQUICIdleTimeout is maximum QUIC idle timeout. It corresponds with the
36+
// default value in quic-go.
37+
const maxQUICIdleTimeout = 30 * time.Second
3938

4039
// quicAddrValidatorCacheSize is the size of the cache that we use in the QUIC
4140
// address validator. The value is chosen arbitrarily and we should consider

0 commit comments

Comments
 (0)