From: Eric Covener Date: Tue, 10 Jan 2023 13:20:55 +0000 (+0000) Subject: Merge r1906540 from trunk: X-Git-Tag: 2.4.55-rc1-candidate~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d93e61e3e9622bacff746772cb9c97fdcaed8baf;p=thirdparty%2Fapache%2Fhttpd.git Merge r1906540 from trunk: 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 --- diff --git a/modules/proxy/mod_proxy_ajp.c b/modules/proxy/mod_proxy_ajp.c index 226ad9b3de3..1449acad733 100644 --- a/modules/proxy/mod_proxy_ajp.c +++ b/modules/proxy/mod_proxy_ajp.c @@ -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 {