From 5efc9507c487c37dfe2a279a4a0335cad701cd5f Mon Sep 17 00:00:00 2001 From: Eric Covener Date: Tue, 10 Jan 2023 13:19:07 +0000 Subject: [PATCH] cleanup on error git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1906540 13f79535-47bb-0310-9956-ffa450edef68 --- modules/proxy/mod_proxy_ajp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/proxy/mod_proxy_ajp.c b/modules/proxy/mod_proxy_ajp.c index 9cd7adbcbbf..07f37392d88 100644 --- a/modules/proxy/mod_proxy_ajp.c +++ b/modules/proxy/mod_proxy_ajp.c @@ -255,6 +255,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 {