]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: fix broken send_proxy on FreeBSD
authorWilly Tarreau <w@1wt.eu>
Tue, 3 Sep 2013 07:02:11 +0000 (09:02 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 3 Sep 2013 07:08:31 +0000 (09:08 +0200)
commit95742a43aaddf8a262339833688b75b5907f95c6
tree372fed7a54cadd9f193a6e9e8922170ae5022a73
parentbe55431f9f4910de2d02922cabfd0ed2f0e7a776
BUG/MEDIUM: fix broken send_proxy on FreeBSD

David Berard reported that send-proxy was broken on FreeBSD and tracked the
issue to be an error returned by send(). We already had the same issue in
the past in another area which was addressed by the following commit :

   0ea0cf6 BUG: raw_sock: also consider ENOTCONN in addition to EAGAIN

In fact, on Linux send() returns EAGAIN when the connection is not yet
established while other OSes return ENOTCONN. Let's consider ENOTCONN for
send-proxy there as the same as EAGAIN.

David confirmed that this change properly fixed the issue.

Another place was affected as well (health checks with send-proxy), and
was fixed.

This fix does not need any backport since it only affects 1.5.
src/connection.c
src/stream_interface.c