From: Yann Ylavic Date: Wed, 8 Nov 2017 23:41:23 +0000 (+0000) Subject: We can't possibly loop in ap_process_http_async_connection(). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2fe8b2ccec2d86ba0886da5d69a8ef4386e46ade;p=apache We can't possibly loop in ap_process_http_async_connection(). 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 --- diff --git a/modules/http/http_core.c b/modules/http/http_core.c index d256856aab..3b8afbc927 100644 --- a/modules/http/http_core.c +++ b/modules/http/http_core.c @@ -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 */