httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpl...@apache.org
Subject svn commit: r985112 - /httpd/httpd/trunk/modules/proxy/proxy_util.c
Date Fri, 13 Aug 2010 07:24:36 GMT
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");
             }
         }
     }



Mime
View raw message