diff options
author | zhaozhao.zz <zhaozhao.zz@alibaba-inc.com> | 2023-02-16 11:21:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-16 11:21:17 +0800 |
commit | a35e08370ac467736328ee5ceed1292cbb2e05db (patch) | |
tree | 4dc05da2a599183764e1aba4b95b5853a9cce2d9 /src | |
parent | 7d5382c0ffb23f5f7e81eb34ad813643039ad417 (diff) | |
download | redis-a35e08370ac467736328ee5ceed1292cbb2e05db.tar.gz |
correct cluster inbound link keepalive time (#11785)
Diffstat (limited to 'src')
-rw-r--r-- | src/cluster.c | 2 |
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); |