diff --git a/src/cluster.c b/src/cluster.c index d088b7976..d2740bb58 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -696,7 +696,7 @@ void clusterAcceptHandler(aeEventLoop *el, int fd, void *privdata, int mask) { } connNonBlock(conn); connEnableTcpNoDelay(conn); - connKeepAlive(conn,server.cluster_node_timeout * 2); + connKeepAlive(conn,server.cluster_node_timeout / 1000 * 2); /* Use non-blocking I/O for cluster messages. */ serverLog(LL_VERBOSE,"Accepting cluster node connection from %s:%d", cip, cport);