mirror of https://github.com/v2ray/v2ray-core
update quic parameters
parent
1d54fd7433
commit
3b1aaa9a3d
|
@ -182,7 +182,6 @@ func (c *interConn) Write(b []byte) (int, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *interConn) Close() error {
|
func (c *interConn) Close() error {
|
||||||
c.stream.CancelRead(0x00)
|
|
||||||
return c.stream.Close()
|
return c.stream.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -149,11 +149,7 @@ func (s *clientSessions) openConnection(destAddr net.Addr, config *Config, tlsCo
|
||||||
quicConfig := &quic.Config{
|
quicConfig := &quic.Config{
|
||||||
ConnectionIDLength: 12,
|
ConnectionIDLength: 12,
|
||||||
HandshakeTimeout: time.Second * 8,
|
HandshakeTimeout: time.Second * 8,
|
||||||
IdleTimeout: time.Second * 120,
|
IdleTimeout: time.Second * 30,
|
||||||
MaxIncomingUniStreams: -1,
|
|
||||||
MaxIncomingStreams: -1,
|
|
||||||
MaxReceiveStreamFlowControlWindow: 256 * 1024,
|
|
||||||
MaxReceiveConnectionFlowControlWindow: 2 * 1024 * 1024,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
conn, err := wrapSysConn(rawConn, config)
|
conn, err := wrapSysConn(rawConn, config)
|
||||||
|
|
|
@ -103,8 +103,8 @@ func Listen(ctx context.Context, address net.Address, port net.Port, streamSetti
|
||||||
quicConfig := &quic.Config{
|
quicConfig := &quic.Config{
|
||||||
ConnectionIDLength: 12,
|
ConnectionIDLength: 12,
|
||||||
HandshakeTimeout: time.Second * 8,
|
HandshakeTimeout: time.Second * 8,
|
||||||
IdleTimeout: time.Second * 120,
|
IdleTimeout: time.Second * 30,
|
||||||
MaxIncomingStreams: 256,
|
MaxIncomingStreams: 32,
|
||||||
MaxIncomingUniStreams: -1,
|
MaxIncomingUniStreams: -1,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue