]> granicus.if.org Git - apache/commitdiff
We can't possibly loop in ap_process_http_async_connection().
authorYann Ylavic <ylavic@apache.org>
Wed, 8 Nov 2017 23:41:23 +0000 (23:41 +0000)
committerYann Ylavic <ylavic@apache.org>
Wed, 8 Nov 2017 23:41:23 +0000 (23:41 +0000)
While at it, fix style. No functional change overall.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1814659 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_core.c

index d256856aab6701df5a74b4fea4d3203d05fa90b5..3b8afbc9276842e7b7af2783559869cf9d0204c2 100644 (file)
@@ -140,11 +140,12 @@ static int ap_process_http_async_connection(conn_rec *c)
     AP_DEBUG_ASSERT(cs != NULL);
     AP_DEBUG_ASSERT(cs->state == CONN_STATE_READ_REQUEST_LINE);
 
-    while (cs->state == CONN_STATE_READ_REQUEST_LINE) {
+    if (cs->state == CONN_STATE_READ_REQUEST_LINE) {
         ap_update_child_status_from_conn(c->sbh, SERVER_BUSY_READ, c);
-        if (ap_extended_status) ap_set_conn_count(c->sbh, r, c->keepalives);
+        if (ap_extended_status) {
+            ap_set_conn_count(c->sbh, r, c->keepalives);
+        }
         if ((r = ap_read_request(c))) {
-
             c->keepalive = AP_CONN_UNKNOWN;
             /* process the request if it was read without error */