Hi Jinge,

On Mon, Jul 23, 2012 at 11:17:42AM +0800, jinge wrote:
> Hi list.
> Sorry for my poor English.
> i use haproxy nowadays.But i just don't now thats the difference between
> http-server-close in frontend or in backends.Can someone help me?

They're similar. You need at least one on the path. In short, haproxy
does this ("-" means "no option" and "*" means "any value other than
those explicitly specified") :

          frontend             backend              result
             -                    -                 tunnel mode

          httpclose               -                 passive close
             -                 httpclose            passive close
          httpclose            httpclose            passive close

          httpclose            http-server-close    forced close
          http-server-close    httpclose            forced close
          forceclose              *                 forced close
             *                 forceclose           forced close

          http-server-close       *                 http-server-close
             *                 http-server-close    http-server-close

As you can see, the stronger close wins, and httpclose+server-close
correspond to force-close.

Regards,
Willy


Reply via email to