commit | 6492db5453a3d398f096e9f7d6e84ea3984a1f04 | [log] [tgz] |
---|---|---|
author | Krzysztof Piotr Oledzki <ole@ans.pl> | Sat Jan 02 22:03:01 2010 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Sun Jan 03 19:23:19 2010 +0100 |
tree | 79600f8f362f30195b2e3849ee2eccdcba094632 | |
parent | a9679ac94b88f378c09c244c7cbafa4e4ceeb35a [diff] |
[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.