Fix QUIC disconnecting issue (#475)

Co-authored-by: RPRX <63339210+rprx@users.noreply.github.com>
This commit is contained in:
Bhoppi Chaw 2021-04-07 00:37:28 +08:00 committed by GitHub
parent 1d13a8da49
commit bf94fb53ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -148,7 +148,7 @@ func (s *clientSessions) openConnection(destAddr net.Addr, config *Config, tlsCo
quicConfig := &quic.Config{
ConnectionIDLength: 12,
MaxIdleTimeout: time.Second * 30,
KeepAlive: true,
}
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,
MaxIdleTimeout: time.Second * 45,
KeepAlive: true,
MaxIncomingStreams: 32,
MaxIncomingUniStreams: -1,
}