Blame SOURCES/httpd-2.4.34-CVE-2019-9511-and-9516-and-9517.patch

f45152
diff --git a/server/mpm/event/event.c b/server/mpm/event/event.c
f45152
index 16e39be..2543693 100644
f45152
--- a/server/mpm/event/event.c
f45152
+++ b/server/mpm/event/event.c
f45152
@@ -1111,10 +1111,11 @@ read_request:
f45152
                           "network write failure in core output filter");
f45152
             cs->pub.state = CONN_STATE_LINGER;
f45152
         }
f45152
-        else if (c->data_in_output_filters) {
f45152
+        else if (c->data_in_output_filters ||
f45152
+                 cs->pub.sense == CONN_SENSE_WANT_READ) {
f45152
             /* Still in WRITE_COMPLETION_STATE:
f45152
-             * Set a write timeout for this connection, and let the
f45152
-             * event thread poll for writeability.
f45152
+             * Set a read/write timeout for this connection, and let the
f45152
+             * event thread poll for read/writeability.
f45152
              */
f45152
             cs->queue_timestamp = apr_time_now();
f45152
             notify_suspend(cs);