mirror of https://github.com/go-redis/redis.git
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:
parent
2d8fa02ac2
commit
958240048c
|
@ -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) {
|
return func(ctx context.Context, network, addr string) (net.Conn, error) {
|
||||||
netDialer := &net.Dialer{
|
netDialer := &net.Dialer{
|
||||||
Timeout: opt.DialTimeout,
|
Timeout: opt.DialTimeout,
|
||||||
KeepAlive: 5 * time.Minute,
|
|
||||||
}
|
}
|
||||||
if opt.TLSConfig == nil {
|
if opt.TLSConfig == nil {
|
||||||
return netDialer.DialContext(ctx, network, addr)
|
return netDialer.DialContext(ctx, network, addr)
|
||||||
|
|
Loading…
Reference in New Issue