1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 17:46:58 -05:00

tweak quic server parameters

This commit is contained in:
Darien Raymond 2018-12-11 09:50:36 +01:00
parent 0ca762e0e2
commit 4055c467a1
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -103,9 +103,9 @@ func Listen(ctx context.Context, address net.Address, port net.Port, streamSetti
quicConfig := &quic.Config{
ConnectionIDLength: 12,
HandshakeTimeout: time.Second * 8,
IdleTimeout: time.Second * 30,
MaxIncomingStreams: 128,
MaxIncomingUniStreams: 32,
IdleTimeout: time.Second * 45,
MaxIncomingStreams: 32,
MaxIncomingUniStreams: -1,
}
conn, err := wrapSysConn(rawConn, config)