Use the default 15-seconds TCP-Keepalive

This reverts commit 4bf8b5a128
The default interval for TCP health probes is 15-seconds
This commit is contained in:
Taha Jahangir 2024-06-03 08:06:29 +03:30 committed by GitHub
parent 2d8fa02ac2
commit 958240048c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 1 deletions

View File

@ -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)