Hi Holger,

On Wed, Aug 03, 2011 at 02:55:15PM +0200, Holger Just wrote:
> Graeme,
> 
> On 2011-08-03 14:41, Graeme Donaldson wrote:
> > So to get to my actual question, with 1.4.8, can I remove "option
> > httpclose", keep "option forwardfor" and still see the X-Forwarded-For
> > header added to each request made? Or does HAproxy still only analyze
> > the first request when client-side HTTP keep-alive is being used?
> 
> The default in HAproxy still uses the tunnel mode, i.e. it analyzes only
> the very first headers in a TCP connection. This mode is used if you
> don't specify anything.
> 
> The second mode is "option httpclose" which will instruct both the
> server and the client to close their connections directly after the
> first request of that TCP connection. It works the same as in 1.3.
> 
> Haproxy 1.4 introduced a new mode with "option http-server-close". It
> still closed the connection to the server but maintains keep-alive
> towards the client if possible and used. On most setups, you probably
> want to use that as it helps with latency on the single high-latency
> part of your connection (between Haproxy and the client).
> 
> There are a couple of additional options like "http-pretend-keepalive"
> or "forceclose" which help to beat unfriendly or non-conforming
> components into submission. These options are thus not needed most of
> the time.
> 
> Details about all the options can be found in the documentation at
> http://haproxy.1wt.eu/download/1.4/doc/configuration.txt

I'd like to congratulate you for this well detailed explanation,
you summed it up perfectly !

Willy


Reply via email to