Change keep alive period and max idle timeout

This commit is contained in:
Zoltán Papp 2024-12-07 10:12:17 +01:00
parent ceaf62aad1
commit 57f54fb18c

View File

@ -29,8 +29,8 @@ func (d Dialer) Dial(ctx context.Context, address string) (net.Conn, error) {
}
quicConfig := &quic.Config{
KeepAlivePeriod: 15 * time.Second,
MaxIdleTimeout: 60 * time.Second,
KeepAlivePeriod: 30 * time.Second,
MaxIdleTimeout: 4 * time.Minute,
EnableDatagrams: true,
}