]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* modules/proxy/mod_proxy_http.c (ap_proxy_http_process_response): Clear any
authorRuediger Pluem <rpluem@apache.org>
Wed, 18 Mar 2020 10:53:06 +0000 (10:53 +0000)
committerRuediger Pluem <rpluem@apache.org>
Wed, 18 Mar 2020 10:53:06 +0000 (10:53 +0000)
  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

index d2eae1b44dfd6221f7e4a53d2db19209aab45ef9..c5e1777623e987fee665d0121e90da54246576a1 100644 (file)
@@ -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);