1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-07 04:02:58 +03:00

* The forward and reverse worker do not keep connections alive, so

ensure that mod_proxy_http does the correct thing
  regarding the Connection header in the request.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@985112 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ruediger Pluem
2010-08-13 07:24:36 +00:00
parent f3906b8cbc
commit 633efb3314

View File

@@ -1573,6 +1573,12 @@ PROXY_DECLARE(int) ap_proxy_pre_request(proxy_worker **worker,
*balancer = NULL; *balancer = NULL;
*worker = conf->forward; *worker = conf->forward;
access_status = OK; access_status = OK;
/*
* The forward worker does not keep connections alive, so
* ensure that mod_proxy_http does the correct thing
* regarding the Connection header in the request.
*/
apr_table_set(r->subprocess_env, "proxy-nokeepalive", "1");
} }
} }
else if (r->proxyreq == PROXYREQ_REVERSE) { else if (r->proxyreq == PROXYREQ_REVERSE) {
@@ -1583,6 +1589,12 @@ PROXY_DECLARE(int) ap_proxy_pre_request(proxy_worker **worker,
*balancer = NULL; *balancer = NULL;
*worker = conf->reverse; *worker = conf->reverse;
access_status = OK; access_status = OK;
/*
* The reverse worker does not keep connections alive, so
* ensure that mod_proxy_http does the correct thing
* regarding the Connection header in the request.
*/
apr_table_set(r->subprocess_env, "proxy-nokeepalive", "1");
} }
} }
} }