From 958240048cd8acd0a39b502453718d238b8a9981 Mon Sep 17 00:00:00 2001 From: Taha Jahangir Date: Mon, 3 Jun 2024 08:06:29 +0330 Subject: [PATCH] Use the default 15-seconds TCP-Keepalive This reverts commit 4bf8b5a128b70cad518e5deeeeeec86315428837 The default interval for TCP health probes is 15-seconds --- options.go | 1 - 1 file changed, 1 deletion(-) diff --git a/options.go b/options.go index 6ed693a0..b9e62249 100644 --- a/options.go +++ b/options.go @@ -232,7 +232,6 @@ func NewDialer(opt *Options) func(context.Context, string, string) (net.Conn, er return func(ctx context.Context, network, addr string) (net.Conn, error) { netDialer := &net.Dialer{ Timeout: opt.DialTimeout, - KeepAlive: 5 * time.Minute, } if opt.TLSConfig == nil { return netDialer.DialContext(ctx, network, addr)