]> git.kaiwu.me - haproxy.git/commit
[BUG] checks: http-check expect could fail a check on multi-packet responses
authorWilly Tarreau <w@1wt.eu>
Wed, 13 Apr 2011 07:32:41 +0000 (09:32 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 13 Apr 2011 07:32:41 +0000 (09:32 +0200)
commita164fb5721b8f542017147ac09b05bd11e9c3664
treef6827b7f740ddb431cf10011116f3deda17318fe
parent04df1125cfad7dea25dec3abcbe2efe6247281ca
[BUG] checks: http-check expect could fail a check on multi-packet responses

Christopher Blencowe reported that the httpchk_expect() function was
lacking a test for incomplete responses : if the server sends only the
headers in the first packet and the body in a subsequent one, there is
a risk that the check fails without waiting for more data. A failure
rate of about 1% was reported.

This fix must be backported to 1.4.
src/checks.c