]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: checks: prevent http keep-alive with http-check expect
authorCyril Bonté <cyril.bonte@free.fr>
Thu, 29 Jan 2015 23:07:07 +0000 (00:07 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 29 Jan 2015 23:43:34 +0000 (00:43 +0100)
commit32602d23610981b48143d1f82885b8cfae286e0f
tree2b633a429c7f7f1430e7f664324c17cef131e1c5
parentaa435e7d7eb1a2dd5f2b9b8008e352a816946ccc
BUG/MINOR: checks: prevent http keep-alive with http-check expect

Sébastien Rohaut reported that string negation in http-check expect didn't
work as expected.

The misbehaviour is caused by responses with HTTP keep-alive. When the
condition is not met, haproxy awaits more data until the buffer is full or the
connection is closed, resulting in a check timeout when "timeout check" is
lower than the keep-alive timeout on the server side.

In order to avoid the issue, when a "http-check expect" is used, haproxy will
ask the server to disable keep-alive by automatically appending a
"Connection: close" header to the request.
doc/configuration.txt
src/checks.c