]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r1906540 from trunk:
authorEric Covener <covener@apache.org>
Tue, 10 Jan 2023 13:20:55 +0000 (13:20 +0000)
committerEric Covener <covener@apache.org>
Tue, 10 Jan 2023 13:20:55 +0000 (13:20 +0000)
cleanup on error

Reviewed By: rpluem, gbechis, covener

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1906542 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_ajp.c

index 226ad9b3de3acf09dae50d9538e628fab0cabf08..1449acad7334b90dbbe46500ec57095928f4994c 100644 (file)
@@ -257,6 +257,8 @@ static int ap_proxy_ajp_request(apr_pool_t *p, request_rec *r,
             ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(10396)
                           "%s Transfer-Encoding is not supported",
                           tenc);
+            /* We had a failure: Close connection to backend */
+            conn->close = 1;
             return HTTP_INTERNAL_SERVER_ERROR;
         }
     } else {