From 4477a8b145dff6afaef03447ee863269ae16fe7f Mon Sep 17 00:00:00 2001 From: John Sully Date: Sun, 10 May 2020 23:56:29 -0400 Subject: [PATCH] We should still send replies even if an async close is pending Former-commit-id: 572bcca9c2e7985782909cca22ef9e381bea55b4 --- src/networking.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/networking.cpp b/src/networking.cpp index 5ff886cf9..dd2928879 100644 --- a/src/networking.cpp +++ b/src/networking.cpp @@ -1082,7 +1082,7 @@ void copyClientOutputBuffer(client *dst, client *src) { /* Return true if the specified client has pending reply buffers to write to * the socket. */ int clientHasPendingReplies(client *c) { - return (c->bufpos || listLength(c->reply)) && !(c->flags & CLIENT_CLOSE_ASAP); + return (c->bufpos || listLength(c->reply)); } static std::atomic rgacceptsInFlight[MAX_EVENT_LOOPS];