summaryrefslogtreecommitdiff
path: root/src/cluster.c
diff options
context:
space:
mode:
authorzhaozhao.zz <zhaozhao.zz@alibaba-inc.com>2023-02-16 11:21:17 +0800
committerGitHub <noreply@github.com>2023-02-16 11:21:17 +0800
commita35e08370ac467736328ee5ceed1292cbb2e05db (patch)
tree4dc05da2a599183764e1aba4b95b5853a9cce2d9 /src/cluster.c
parent7d5382c0ffb23f5f7e81eb34ad813643039ad417 (diff)
downloadredis-a35e08370ac467736328ee5ceed1292cbb2e05db.tar.gz
correct cluster inbound link keepalive time (#11785)
Diffstat (limited to 'src/cluster.c')
-rw-r--r--src/cluster.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cluster.c b/src/cluster.c
index 0ceb34720..74df8b923 100644
--- a/src/cluster.c
+++ b/src/cluster.c
@@ -1159,7 +1159,7 @@ void clusterAcceptHandler(aeEventLoop *el, int fd, void *privdata, int mask) {
return;
}
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);