]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: raw_sock: always report asynchronous connection errors
authorWilly Tarreau <w@1wt.eu>
Thu, 4 Oct 2012 18:17:13 +0000 (20:17 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 4 Oct 2012 20:26:09 +0000 (22:26 +0200)
commitc0e98868fe08772260490f0381417a5636968b66
tree55731bd2efab63811237817d4db8d3d7066f83b9
parent8c89c2059fa4dace2e0c74cbb009c5a94d054fc1
MINOR: raw_sock: always report asynchronous connection errors

Depending on the pollers used, a connection error may be notified
with POLLOUT|POLLERR|POLLHUP. POLLHUP by itself is enough for the
connection handler to call the read actor, which would only consider
this flag as a good indication of a hangup, without considering the
POLLERR flag.

In order to address this, we directly jump to the read0 label if
POLLERR was not set.

This will be important with health checks as we don't want to believe
a connection was properly established when it's not the case !
src/raw_sock.c