MINOR: check: do not ignore a connection header for http-check send
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 22 Dec 2020 13:08:52 +0000 (14:08 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 9 Feb 2021 14:59:47 +0000 (15:59 +0100)
commitaea6302e9080677a0192774371d6ec820462405b
tree22d82533ef770aa657c061d58d126c66dbb7f572
parent5902ad99b977de485bb3d12066a1111b562c1834
MINOR: check: do not ignore a connection header for http-check send

Allow the user to specify a custom Connection header for http-check
send. This is useful for example to implement a websocket upgrade check.

If no connection header has been set, a 'Connection: close' header is
automatically appended to allow the server to close the connection
immediately after the request/response.

Update the documentation related to http-check send.

This fixes the github issue #1009.

(cherry picked from commit 6d975f0af650e51c5c8e584d9b6beb413deb6868)
Signed-off-by: Willy Tarreau <w@1wt.eu>
doc/configuration.txt
src/tcpcheck.c