53bb7e
From 5efc9507c487c37dfe2a279a4a0335cad701cd5f Mon Sep 17 00:00:00 2001
53bb7e
From: Eric Covener <covener@apache.org>
53bb7e
Date: Tue, 10 Jan 2023 13:19:07 +0000
53bb7e
Subject: [PATCH] cleanup on error
53bb7e
53bb7e
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1906540 13f79535-47bb-0310-9956-ffa450edef68
53bb7e
---
53bb7e
 modules/proxy/mod_proxy_ajp.c | 2 ++
53bb7e
 1 file changed, 2 insertions(+)
53bb7e
53bb7e
diff --git a/modules/proxy/mod_proxy_ajp.c b/modules/proxy/mod_proxy_ajp.c
53bb7e
index 9cd7adbcbbf..07f37392d88 100644
53bb7e
--- a/modules/proxy/mod_proxy_ajp.c
53bb7e
+++ b/modules/proxy/mod_proxy_ajp.c
53bb7e
@@ -255,6 +255,8 @@ static int ap_proxy_ajp_request(apr_pool_t *p, request_rec *r,
53bb7e
             ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(10396)
53bb7e
                           "%s Transfer-Encoding is not supported",
53bb7e
                           tenc);
53bb7e
+            /* We had a failure: Close connection to backend */
53bb7e
+            conn->close = 1;
53bb7e
             return HTTP_INTERNAL_SERVER_ERROR;
53bb7e
         }
53bb7e
     } else {