From c6e3ce38ceaebac7ea801619958e51d24fbf97d7 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 408589726..67cd50245 100644 --- a/redis.conf +++ b/redis.conf @@ -125,8 +125,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 #####################################