]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] Healthchecks: get a proper error code if connection cannot be completed immediately
authorKrzysztof Piotr Oledzki <ole@ans.pl>
Sat, 2 Jan 2010 21:03:01 +0000 (22:03 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 3 Jan 2010 18:23:19 +0000 (19:23 +0100)
commit6492db5453a3d398f096e9f7d6e84ea3984a1f04
tree79600f8f362f30195b2e3849ee2eccdcba094632
parenta9679ac94b88f378c09c244c7cbafa4e4ceeb35a
[BUG] Healthchecks: get a proper error code if connection cannot be completed immediately

In case of a non-blocking socket, used for connecting to a remote
server (not localhost), the error reported by the health check
was most of a time one of EINPROGRESS/EAGAIN/EALREADY.

This patch adds a getsockopt(..., SO_ERROR, ...) call so now
the proper error message is reported.
src/checks.c