]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] checks: don't wait for a close to start parsing the response
authorWilly Tarreau <w@1wt.eu>
Wed, 17 Mar 2010 20:52:07 +0000 (21:52 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 17 Mar 2010 20:52:07 +0000 (21:52 +0100)
commit039381855dd2cefa4e0c827514c0124728030c65
treeed9dc3efc8395a8534c7b95f96df88bb01ba5427
parente437c44483028cc4a06bb99691a717196b5c037b
[BUG] checks: don't wait for a close to start parsing the response

Cyril Bonté reported a regression introduced with very last changes
on the checks code, which causes failed checks on if the server does
not close the connection in time. This happens on HTTP/1.1 checks or
on SMTP checks for instance.

This fix consists in restoring the old behaviour of parsing as soon
as something is available in the response buffer, and waiting for
more data if some are missing. This also helps releasing connections
earlier (eg: a GET check will not have to download the whole object).
src/checks.c