1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 01:57:12 -05:00

update quic parameters

This commit is contained in:
Darien Raymond 2018-11-28 23:14:41 +01:00
parent 1d54fd7433
commit 3b1aaa9a3d
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
3 changed files with 5 additions and 10 deletions

View File

@ -182,7 +182,6 @@ func (c *interConn) Write(b []byte) (int, error) {
}
func (c *interConn) Close() error {
c.stream.CancelRead(0x00)
return c.stream.Close()
}

View File

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

View File

@ -103,8 +103,8 @@ func Listen(ctx context.Context, address net.Address, port net.Port, streamSetti
quicConfig := &quic.Config{
ConnectionIDLength: 12,
HandshakeTimeout: time.Second * 8,
IdleTimeout: time.Second * 120,
MaxIncomingStreams: 256,
IdleTimeout: time.Second * 30,
MaxIncomingStreams: 32,
MaxIncomingUniStreams: -1,
}