> -----Original Message-----
> From: Ryujiro Shibuya 
> Sent: Freitag, 13. August 2010 05:14
> To: dev@httpd.apache.org
> Subject: RE: Changing Connection header use in forward proxy
> 

> > 
> > How about the following untested patch instead?
> > 
> > Index: modules/proxy/proxy_util.c
> > ===================================================================
> > --- modules/proxy/proxy_util.c  (revision 982130)
> > +++ modules/proxy/proxy_util.c  (working copy)
> > @@ -1568,6 +1568,7 @@
> >                  *balancer = NULL;
> >                  *worker = conf->forward;
> >                  access_status = OK;
> > +                apr_table_set(r->subprocess_env, 
> "proxy-nokeepalive",
> > "1");
> >              }
> >          }
> >          else if (r->proxyreq == PROXYREQ_REVERSE) {
> > @@ -1578,6 +1579,7 @@
> >                  *balancer = NULL;
> >                  *worker = conf->reverse;
> >                  access_status = OK;
> > +                apr_table_set(r->subprocess_env, 
> "proxy-nokeepalive",
> > "1");
> >              }
> >          }
> >      }
> > 
> > Regards
> > 
> > Rüdiger
> 
> Hi Rüdiger,
> 
> I've applied this patch on 2.2.16 and tested. As the result, 
> the appropriate
> "Connection" header is now sent to the origin server, as expected.
> For the usual forward proxy requests, "Connection: close" 
> header is set.
> For the forward proxy requests for the origin server 
> individually defined as
> "ProxySet keepalive=on", "Connection: Keep-Alive" header is set.

Commited as r985112

http://svn.apache.org/viewvc?rev=985112&view=rev

Regards

Rüdiger

Reply via email to