diff --git a/src/networking.c b/src/networking.c index b31c89df9609f36c967c14741ba0281e4800be34..9f35987be3299c3a5a3c923d1c613d7afe79bb03 100644 --- a/src/networking.c +++ b/src/networking.c @@ -611,7 +611,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);