]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG: raw_sock: also consider ENOTCONN in addition to EAGAIN
authorWilly Tarreau <w@1wt.eu>
Sun, 11 Nov 2012 19:38:30 +0000 (20:38 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 11 Nov 2012 19:53:28 +0000 (20:53 +0100)
commit0ea0cf606e1da866b1c1e1b25dbe3472ccaaa6d8
tree64f166ff1eb373f3717c1da28b3a90c8b29ef6f7
parent09f24569d45975f1fb08afaf9a008c99368d122f
BUG: raw_sock: also consider ENOTCONN in addition to EAGAIN

A failed send() may return ENOTCONN when the connection is not yet established.
On Linux, we generally see EAGAIN but on OpenBSD we clearly have ENOTCONN, so
let's ensure we poll for write when we encounter this error.
src/raw_sock.c