chore: Increase idle timeout and add keep alive period

This commit is contained in:
Skyxim 2022-07-15 21:57:50 +08:00
parent 4e272ff066
commit 10f8f5dd7b

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)