]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM: checks: don't poll on recv when using plain TCP connects
authorWilly Tarreau <w@1wt.eu>
Thu, 5 Dec 2013 00:53:08 +0000 (01:53 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 5 Dec 2013 01:23:48 +0000 (02:23 +0100)
commit06559ac1fbc3f1dbc778cba60fdc615bc277c5b1
treec6c1b8d63d00d60ea7560fcd123bd736a517adfc
parent25e2ab53db4dbfc4ca978528dbae2ab198be6b5e
OPTIM: checks: don't poll on recv when using plain TCP connects

When pure TCP checks are used, we see a useless call to recvfrom()
in strace resulting from an inconditional poll on recv after the
connect() succeeds. Let's remove this one and properly report
connection success in the write events.
src/checks.c