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