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

update timeout and window size in quic

This commit is contained in:
Darien Raymond 2018-11-27 22:39:54 +01:00
parent 828cfac630
commit 1d54fd7433
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
2 changed files with 8 additions and 6 deletions

View File

@ -147,11 +147,13 @@ func (s *clientSessions) openConnection(destAddr net.Addr, config *Config, tlsCo
}
quicConfig := &quic.Config{
ConnectionIDLength: 12,
HandshakeTimeout: time.Second * 8,
IdleTimeout: time.Second * 30,
MaxIncomingUniStreams: -1,
MaxIncomingStreams: -1,
ConnectionIDLength: 12,
HandshakeTimeout: time.Second * 8,
IdleTimeout: time.Second * 120,
MaxIncomingUniStreams: -1,
MaxIncomingStreams: -1,
MaxReceiveStreamFlowControlWindow: 256 * 1024,
MaxReceiveConnectionFlowControlWindow: 2 * 1024 * 1024,
}
conn, err := wrapSysConn(rawConn, config)

View File

@ -103,7 +103,7 @@ 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,
IdleTimeout: time.Second * 120,
MaxIncomingStreams: 256,
MaxIncomingUniStreams: -1,
}