From a950a84303038d3365442a48cc2c06f4b5d3f65e Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 29 Feb 2012 16:33:54 +0100 Subject: [PATCH] Ping the slave using the standard protocol instead of the inline one. --- src/replication.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/replication.c b/src/replication.c index dd42fcf17..e82978395 100644 --- a/src/replication.c +++ b/src/replication.c @@ -596,7 +596,7 @@ void replicationCron(void) { if (slave->replstate == REDIS_REPL_SEND_BULK) continue; if (slave->replstate == REDIS_REPL_ONLINE) { /* If the slave is online send a normal ping */ - addReplySds(slave,sdsnew("PING\r\n")); + addReplySds(slave,sdsnew("*1\r\n$4\r\nPING\r\n")); } else { /* Otherwise we are in the pre-synchronization stage. * Just a newline will do the work of refreshing the -- GitLab