Unverified Commit f03af47a authored by qetu3790's avatar qetu3790 Committed by GitHub
Browse files

Set TCP keepalive on inbound clusterbus connections (#9230)

Set TCP keepalive on inbound clusterbus connections to prevent memory leak
parent 334a9789
......@@ -736,6 +736,7 @@ void clusterAcceptHandler(aeEventLoop *el, int fd, void *privdata, int mask) {
return;
}
connEnableTcpNoDelay(conn);
connKeepAlive(conn,server.cluster_node_timeout * 2);
/* Use non-blocking I/O for cluster messages. */
serverLog(LL_VERBOSE,"Accepting cluster node connection from %s:%d", cip, cport);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment