You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rp...@apache.org on 2010/08/13 09:24:36 UTC
svn commit: r985112 - /httpd/httpd/trunk/modules/proxy/proxy_util.c
Author: rpluem
Date: Fri Aug 13 07:24:36 2010
New Revision: 985112
URL: http://svn.apache.org/viewvc?rev=985112&view=rev
Log:
* 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.
Modified:
httpd/httpd/trunk/modules/proxy/proxy_util.c
Modified: httpd/httpd/trunk/modules/proxy/proxy_util.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/proxy_util.c?rev=985112&r1=985111&r2=985112&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/proxy_util.c (original)
+++ httpd/httpd/trunk/modules/proxy/proxy_util.c Fri Aug 13 07:24:36 2010
@@ -1573,6 +1573,12 @@ PROXY_DECLARE(int) ap_proxy_pre_request(
*balancer = NULL;
*worker = conf->forward;
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) {
@@ -1583,6 +1589,12 @@ PROXY_DECLARE(int) ap_proxy_pre_request(
*balancer = NULL;
*worker = conf->reverse;
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");
}
}
}