]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] stream_sock: fix handling for server side PROXY protocol
authorWilly Tarreau <w@1wt.eu>
Mon, 28 Mar 2011 21:17:54 +0000 (23:17 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 28 Mar 2011 21:17:54 +0000 (23:17 +0200)
commit68f49da97231af1ee3f0a7f9d8753e612306685e
tree934053143714c76ae68b52f2856ac68e401a8988
parent24bb5f504b10c76b4cf87a6bc5dd51a4a609cd5e
[BUG] stream_sock: fix handling for server side PROXY protocol

Patch 5ab04ec47c9946a2bbc535687c023215ca813da0 was incomplete,
because if the first send() fails on an empty buffer, we fail
to rearm the polling and we can't establish the connection
anymore.

The issue was reported by Ben Timby who provided large amounts
of traces of various tests helping to reliably reproduce the issue.
src/stream_sock.c