From 2163a01bdcd93147c5ccdd8809d8ae1a85d5ec54 Mon Sep 17 00:00:00 2001 From: Ruediger Pluem Date: Wed, 18 Mar 2020 10:53:06 +0000 Subject: [PATCH] * modules/proxy/mod_proxy_http.c (ap_proxy_http_process_response): Clear any possible returned buckets in the brigade in the error case. As we want to close the connection anyway there is no sensible content we could still sent and hence doing the needed life time transformation of the buckets would be a waste. PR: 64234 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1875353 13f79535-47bb-0310-9956-ffa450edef68 --- modules/proxy/mod_proxy_http.c | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/proxy/mod_proxy_http.c b/modules/proxy/mod_proxy_http.c index d2eae1b44df..c5e1777623e 100644 --- a/modules/proxy/mod_proxy_http.c +++ b/modules/proxy/mod_proxy_http.c @@ -1787,6 +1787,7 @@ int ap_proxy_http_process_response(proxy_http_req_t *req) * through a response, our only option is to * disconnect the client too. */ + apr_brigade_cleanup(bb); e = ap_bucket_error_create(HTTP_GATEWAY_TIME_OUT, NULL, r->pool, c->bucket_alloc); APR_BRIGADE_INSERT_TAIL(bb, e); -- 2.47.3