]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* Keep track of the number of keepalives we processed on this connection.
authorRuediger Pluem <rpluem@apache.org>
Mon, 4 Apr 2022 16:00:58 +0000 (16:00 +0000)
committerRuediger Pluem <rpluem@apache.org>
Mon, 4 Apr 2022 16:00:58 +0000 (16:00 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1899564 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_http.c

index 4930eda08e67a9eb910b2323d1b0d2db18a925b9..0d335961291a69cf8530fad618a7554bbca31fb6 100644 (file)
@@ -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;