Set SO_KEEPALIVE on client sockets if configured to do so.

This commit is contained in:
antirez
2013-02-08 16:40:59 +01:00
parent f2817cbd9e
commit 2ed3fc1502
4 changed files with 14 additions and 0 deletions

View File

@ -568,6 +568,7 @@ struct redisServer {
/* Configuration */
int verbosity; /* Loglevel in redis.conf */
int maxidletime; /* Client timeout in seconds */
int tcpkeepalive; /* Set SO_KEEPALIVE if non-zero. */
size_t client_max_querybuf_len; /* Limit for client query buffer length */
int dbnum; /* Total number of configured DBs */
int daemonize; /* True if running as a daemon */