]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: checks: fix recv polling after connect()
authorWilly Tarreau <w@1wt.eu>
Fri, 23 Nov 2012 15:32:33 +0000 (16:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 Nov 2012 15:32:33 +0000 (16:32 +0100)
commitdb3b4a28913a26a0835c60b93ad49f0a6c714363
tree60be13e225b251af66dee6e408e6632334cc7da9
parentb63b59641e7d5a8dc5cce66611c907e3bda31eb2
MINOR: checks: fix recv polling after connect()

Commit a522f801 moved a call to __conn_data_want_recv() just after the
connect() call, which is not 100% correct. First, it does not take errors
into account, eventhough this is harmless. Second, this change will only
be taken into account after next call do conn_data_polling_update(), which
is not necessarily what is expected (eg: if an error is only reported on
the recv side).

So let's use conn_data_poll_recv() instead, which directly subscribes
the event to polling.
src/checks.c