1
0
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:
Bhoppi Chaw
2021-04-04 16:32:56 +08:00
committed by GitHub
parent b8af713998
commit 0dcd1f4992
2 changed files with 2 additions and 0 deletions

View File

@@ -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)

View File

@@ -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)