mirror of
https://github.com/fluencelabs/redis
synced 2025-03-20 01:20:50 +00:00
RESP3: PING should reply normally in RESP3 Pub/Sub mode.
Because in RESP3 commands can be sent in the Pub/Sub connection without problems, so it's better if in such mode there is no exception about PING.
This commit is contained in:
parent
eaaac08892
commit
a4f8f4a824
@ -2924,7 +2924,7 @@ void pingCommand(client *c) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (c->flags & CLIENT_PUBSUB) {
|
||||
if (c->flags & CLIENT_PUBSUB && c->resp == 2) {
|
||||
addReply(c,shared.mbulkhdr[2]);
|
||||
addReplyBulkCBuffer(c,"pong",4);
|
||||
if (c->argc == 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user