diff options
author | antirez <antirez@gmail.com> | 2013-02-09 01:17:59 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2013-02-11 11:47:35 +0100 |
commit | e88517ac30dbc166e047cc7e399752a36b50cb5e (patch) | |
tree | 7fed0411aff646fb9f327d4a0610015f11ea26a4 /redis.conf | |
parent | 2d89c53d0d9c4a29ab299568b90137ff6926b6f7 (diff) | |
download | redis-e88517ac30dbc166e047cc7e399752a36b50cb5e.tar.gz |
TCP keep-alive. Better documentation in redis.conf.
Diffstat (limited to 'redis.conf')
-rw-r--r-- | redis.conf | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/redis.conf b/redis.conf index 120e40577..099a8e111 100644 --- a/redis.conf +++ b/redis.conf @@ -41,13 +41,18 @@ timeout 0 # TCP keepalive. # -# When this option is set to a non-zero value, SO_KEEPALIVE option will be -# enabled in order to send ACKs just to avoid connection drops or to detect -# dead peers. +# If non-zero, use SO_KEEPALIVE to send TCP ACKs to clients in absence +# of communication. This is useful for two reasons: # -# The value you specify with this option is the period (in seconds) we use -# in order to refresh the connection with TCP ACKs, however the period is -# only actually set on Linux. Other kernels will use the system-wide default. +# 1) Detect dead peers. +# 2) Take the connection alive from the point of view of network +# equipment in the middle. +# +# On Linux, the specified value (in seconds) is the period used to send ACKs. +# 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 # Specify the server verbosity level. |