mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-04-10 15:55:32 -04:00
fix QUIC disconnecting issue (#850)
Co-authored-by: Bhoppi Chaw <bhoppi#outlook,com>
This commit is contained in:
@@ -153,6 +153,7 @@ func (s *clientSessions) openConnection(destAddr net.Addr, config *Config, tlsCo
|
||||
ConnectionIDLength: 12,
|
||||
HandshakeIdleTimeout: time.Second * 8,
|
||||
MaxIdleTimeout: time.Second * 30,
|
||||
KeepAlive: true,
|
||||
}
|
||||
|
||||
conn, err := wrapSysConn(rawConn, config)
|
||||
|
||||
@@ -110,6 +110,7 @@ func Listen(ctx context.Context, address net.Address, port net.Port, streamSetti
|
||||
MaxIdleTimeout: time.Second * 45,
|
||||
MaxIncomingStreams: 32,
|
||||
MaxIncomingUniStreams: -1,
|
||||
KeepAlive: true,
|
||||
}
|
||||
|
||||
conn, err := wrapSysConn(rawConn, config)
|
||||
|
||||
Reference in New Issue
Block a user