X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/609baba8a2d115f05e8fbc0db742ca60848e3c80..a950a84303038d3365442a48cc2c06f4b5d3f65e:/src/networking.c diff --git a/src/networking.c b/src/networking.c index dab6bfd9..d8fb8132 100644 --- a/src/networking.c +++ b/src/networking.c @@ -1329,7 +1329,7 @@ int checkClientOutputBufferLimits(redisClient *c) { * called from contexts where the client can't be freed safely, i.e. from the * lower level functions pushing data inside the client output buffers. */ void asyncCloseClientOnOutputBufferLimitReached(redisClient *c) { - if (c->flags & REDIS_CLOSE_ASAP) return; + if (c->reply_bytes == 0 || c->flags & REDIS_CLOSE_ASAP) return; if (checkClientOutputBufferLimits(c)) { sds client = getClientInfoString(c);