]> git.kaiwu.me - haproxy.git/commit
MEDIUM: unix: avoid a double connect probe when no data are sent
authorWilly Tarreau <w@1wt.eu>
Sat, 10 May 2014 07:48:28 +0000 (09:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 10 May 2014 07:48:28 +0000 (09:48 +0200)
commit7bb21532f4d116c38f54bf81112133f57a2d3042
tree0a2e5418f92c4665e24f3fda336cf1027b9e5970
parent3543cdbd173902cf38ad3085045e3b97bd5b46f0
MEDIUM: unix: avoid a double connect probe when no data are sent

Plain "tcp" health checks sent to a unix socket cause two connect()
calls to be made, one to connect, and a second one to verify that the
connection properly established. But with unix sockets, we get
immediate notification of success, so we can avoid this second
attempt. However we need to ensure that we'll visit the connection
handler even if there's no remaining handshake pending, so for this
we claim we have some data to send in order to enable polling for
writes if there's no more handshake.
src/proto_uxst.c