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
co-authored by github
parent b8af713998
commit 0dcd1f4992
2 changed files with 2 additions and 0 deletions
+1
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)
+1
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)