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.

(cherry picked from commit cc705a6b612df9d1ac46fea4c733f621669c4514)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed