diff options
author | antirez <antirez@gmail.com> | 2016-06-13 12:03:14 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2016-06-13 12:03:14 +0200 |
commit | c6e3ce38ceaebac7ea801619958e51d24fbf97d7 (patch) | |
tree | 0d36355f1bba7ae03333bdc07a24909ceb44c540 /redis.conf | |
parent | 5ba9bdec75292434b7b062cc8e7f0ae1e9b9fce4 (diff) | |
download | redis-c6e3ce38ceaebac7ea801619958e51d24fbf97d7.tar.gz |
Enable tcp-keepalive by default.
Diffstat (limited to 'redis.conf')
-rw-r--r-- | redis.conf | 5 |
1 files 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 ##################################### |