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 ee21c18e5d
commit 124a635bc5
4 changed files with 14 additions and 0 deletions

View File

@ -1130,6 +1130,7 @@ void initServerConfig() {
server.dbnum = REDIS_DEFAULT_DBNUM;
server.verbosity = REDIS_NOTICE;
server.maxidletime = REDIS_MAXIDLETIME;
server.tcpkeepalive = 0;
server.client_max_querybuf_len = REDIS_MAX_QUERYBUF_LEN;
server.saveparams = NULL;
server.loading = 0;