summaryrefslogtreecommitdiff
path: root/modules/proxy
diff options
context:
space:
mode:
authorRuediger Pluem <rpluem@apache.org>2022-04-04 16:00:58 +0000
committerRuediger Pluem <rpluem@apache.org>2022-04-04 16:00:58 +0000
commit82a1d00f9bafd975c4036d570f41dcc92b96a50a (patch)
tree332284dabdc3519148e5a48e9ac507e1708d3007 /modules/proxy
parent4816f954d8f7536c3b5947f711e52c2c39efacbf (diff)
downloadhttpd-82a1d00f9bafd975c4036d570f41dcc92b96a50a.tar.gz
* 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
Diffstat (limited to 'modules/proxy')
-rw-r--r--modules/proxy/mod_proxy_http.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/proxy/mod_proxy_http.c b/modules/proxy/mod_proxy_http.c
index 4930eda08e..0d33596129 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;