]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: raw_sock: improve connection error reporting
authorWilly Tarreau <w@1wt.eu>
Thu, 4 Oct 2012 18:38:49 +0000 (20:38 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 4 Oct 2012 20:26:09 +0000 (22:26 +0200)
commit6f5d141149e632f3bdcd09f4ba80dd9a09d1f22c
treea766e0e4fb850b4e671df23b7e1b4a42ccbf55ca
parentc0e98868fe08772260490f0381417a5636968b66
MEDIUM: raw_sock: improve connection error reporting

When a connection setup is pending and we receive an error without a
POLL_IN flag, we're certain there will be nothing to read from it and
we can safely report an error without attempting a recv() call. This
will be significantly better for health checks which will avoid a useless
recv() on all failed checks.
src/raw_sock.c