Skip unecessary check for pong recieved (#8585)

This commit is contained in:
Madelyn Olson 2021-03-24 19:37:38 -07:00 committed by GitHub
parent 1372210a03
commit 600c15429e

View File

@ -3630,7 +3630,6 @@ void clusterCron(void) {
now - node->link->ctime >
server.cluster_node_timeout && /* was not already reconnected */
node->ping_sent && /* we already sent a ping */
node->pong_received < node->ping_sent && /* still waiting pong */
/* and we are waiting for the pong more than timeout/2 */
ping_delay > server.cluster_node_timeout/2 &&
/* and in such interval we are not seeing any traffic at all. */