]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: connection: local_send_proxy must wait for connection to establish
authorWilly Tarreau <w@1wt.eu>
Sat, 24 Nov 2012 10:23:04 +0000 (11:23 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 24 Nov 2012 10:23:04 +0000 (11:23 +0100)
commite3635edc885e066491dd4db9688862149a538ab6
tree52426a53e1c608ed94c3abc6f13fdbf3f3b9f417
parent6c560da279430e3e11f9845026d22efed6fdf44c
BUG/MEDIUM: connection: local_send_proxy must wait for connection to establish

The conn_local_send_proxy() function has to retrieve the local and remote
addresses, but the getpeername() and getsockname() functions may fail until
the connection is established. So now we catch this error and poll for write
when this happens.
src/connection.c