chore: Increase idle timeout and add keep alive period

This commit is contained in:
gVisor bot 2022-07-15 21:57:50 +08:00
parent c3035df5be
commit 6fc60edf75

View file

@ -142,7 +142,8 @@ func (dc *quicClient) openConnection(ctx context.Context) (quic.Connection, erro
ConnectionIDLength: 12,
HandshakeIdleTimeout: time.Second * 8,
MaxIncomingStreams: 4,
MaxIdleTimeout: time.Second * 30,
KeepAlivePeriod: 10 * time.Second,
MaxIdleTimeout: time.Second * 120,
}
log.Debugln("opening new connection to %s", dc.addr)