]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] http: fix http-pretend-keepalive and httpclose/tunnel mode
authorCyril Bonté <cyril.bonte@free.fr>
Wed, 29 Dec 2010 08:36:56 +0000 (09:36 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 29 Dec 2010 14:24:48 +0000 (15:24 +0100)
commit9ea2b9ac753697aed856b9a912b67a45c69bb8f8
tree68635daec2919353be48b7e8b6279538b299be94
parentb89cfca49428e79af1514c782cf0654cda3938ba
[BUG] http: fix http-pretend-keepalive and httpclose/tunnel mode

Since haproxy 1.4.9, combining option httpclose and option
http-pretend-keepalive can leave the connections opened until the backend
keep-alive timeout is reached, providing bad performances.
The same can occur when the proxy is in tunnel mode.

This patch ensures that the server side connection is closed after the
response and ignore http-pretend-keepalive in tunnel mode.
src/proto_http.c