]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: connection: check for connection validation earlier
authorWilly Tarreau <w@1wt.eu>
Fri, 27 Dec 2019 09:54:22 +0000 (10:54 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 27 Dec 2019 15:38:47 +0000 (16:38 +0100)
commitb2a7ab08a8770b0991f2181e0b97d96ff131af05
tree2860d1827b385e018d73dc9467aa17c2ca8cb1db
parent4970e5adb7235758951e5300f0887c9b792d5606
MINOR: connection: check for connection validation earlier

In conn_fd_handler() we used to first give a chance to the send()
callback to try to send data and validate the connection at the same
time. But since 1.9 we do not call this callback anymore inline, it's
scheduled. So let's validate the connection ealier so that all other
decisions can be taken based on this confirmation. This may notably
be useful to the xprt_done_cb() to know that the connection was
properly validated.
src/connection.c