From: Ruediger Pluem Date: Mon, 4 Apr 2022 16:00:58 +0000 (+0000) Subject: * Keep track of the number of keepalives we processed on this connection. X-Git-Tag: 2.5.0-alpha2-ci-test-only~413 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82a1d00f9bafd975c4036d570f41dcc92b96a50a;p=thirdparty%2Fapache%2Fhttpd.git * Keep track of the number of keepalives we processed on this connection. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1899564 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/mod_proxy_http.c b/modules/proxy/mod_proxy_http.c index 4930eda08e6..0d335961291 100644 --- a/modules/proxy/mod_proxy_http.c +++ b/modules/proxy/mod_proxy_http.c @@ -1360,6 +1360,14 @@ int ap_proxy_http_process_response(proxy_http_req_t *req) backend->close = 1; origin->keepalive = AP_CONN_CLOSE; } + else { + /* + * Keep track of the number of keepalives we processed on this + * connection. + */ + origin->keepalives++; + } + } else { /* an http/0.9 response */ backasswards = 1;