Co-authored-by: Bhoppi Chaw <bhoppi#outlook,com>
@@ -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,