diff options
author | Ruediger Pluem <rpluem@apache.org> | 2022-04-04 18:00:58 +0200 |
---|---|---|
committer | Ruediger Pluem <rpluem@apache.org> | 2022-04-04 18:00:58 +0200 |
commit | 82a1d00f9bafd975c4036d570f41dcc92b96a50a (patch) | |
tree | 332284dabdc3519148e5a48e9ac507e1708d3007 /modules/proxy/mod_proxy_http.c | |
parent | * We need to set r->status on each call after we noticed an EOC as (diff) | |
download | apache2-82a1d00f9bafd975c4036d570f41dcc92b96a50a.tar.xz apache2-82a1d00f9bafd975c4036d570f41dcc92b96a50a.zip |
* 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 '')
-rw-r--r-- | modules/proxy/mod_proxy_http.c | 8 |
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; |