]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: checks: start sending the request right after connect()
authorWilly Tarreau <w@1wt.eu>
Thu, 5 Sep 2019 15:51:30 +0000 (17:51 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 Sep 2019 06:13:15 +0000 (08:13 +0200)
commitcc705a6b612df9d1ac46fea4c733f621669c4514
treeb8dd0032bfc1f7c618f3d0013bb9fafd8e236e28
parent5909380c057cef2f54a3cd3f4ff249649c6fe101
BUG/MINOR: checks: start sending the request right after connect()

Since the change of I/O direction, we must not wait for an empty connect
callback before sending the request, we must attempt to send it as soon
as possible so that we don't uselessly poll. This is what this patch
does. This reduces the total check duration by a complete poll loop
compared to what is described in issue #253.

This must be backported to 2.0.
src/checks.c