X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/64f201c2aa3b2d6618b5aa11a19e2b96e0450e87..7112580cb3368d08f0672360b856e8a0d9892051:/src/networking.c diff --git a/src/networking.c b/src/networking.c index 7f9b96f7..3979ab62 100644 --- a/src/networking.c +++ b/src/networking.c @@ -610,7 +610,7 @@ void sendReplyToClient(aeEventLoop *el, int fd, void *privdata, int mask) { } } if (totwritten > 0) c->lastinteraction = time(NULL); - if (listLength(c->reply) == 0) { + if (c->bufpos == 0 && listLength(c->reply) == 0) { c->sentlen = 0; aeDeleteFileEvent(server.el,c->fd,AE_WRITABLE);