From 82a1d00f9bafd975c4036d570f41dcc92b96a50a Mon Sep 17 00:00:00 2001 From: Ruediger Pluem Date: Mon, 4 Apr 2022 16:00:58 +0000 Subject: [PATCH] * 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 --- modules/proxy/mod_proxy_http.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- 2.47.2