From 40cfe13141c7178d22fd43e4ffbecc37686e0b43 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 13 Jun 2016 12:03:14 +0200 Subject: [PATCH] Enable tcp-keepalive by default. --- redis.conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/redis.conf b/redis.conf index acdb88d5..0ef8a7ca 100644 --- a/redis.conf +++ b/redis.conf @@ -117,8 +117,9 @@ timeout 0 # Note that to close the connection the double of the time is needed. # On other kernels the period depends on the kernel configuration. # -# A reasonable value for this option is 60 seconds. -tcp-keepalive 0 +# A reasonable value for this option is 300 seconds, which is the new +# Redis default starting with Redis 3.2.1. +tcp-keepalive 300 ################################# GENERAL #####################################