X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/f65c8f654fafb6cc86804d8f4ca9cdd1b6d978db..f990782f4ded01658f3091b5ebf956ca778f957e:/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);