]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: tcp: Make sure we keep the polling consistent in tcp_probe_connect.
authorOlivier Houchard <cognet@ci0.org>
Thu, 6 Jun 2019 16:15:01 +0000 (18:15 +0200)
committerOlivier Houchard <cognet@ci0.org>
Thu, 6 Jun 2019 16:17:32 +0000 (18:17 +0200)
commit7b3a79f6c42a9ae6673f6d30877e9b7c38858623
treeb8e6fdc3103eb8fe3a4fc9bdef891a8f90129f49
parent43091ed161e1013feb7efb07a50b04dda6546bf9
BUG/MEDIUM: tcp: Make sure we keep the polling consistent in tcp_probe_connect.

In tcp_probe_connect(), if the connection is still pending, do not disable
want_recv, we don't have any business to do so, but explicitely use
__conn_xprt_want_send(), otherwise the next time we'll reach tcp_probe_connect,
fd_send_ready() would return 0 and we would never flag the connection as
CO_FL_CONNECTED, which can lead to various problems, such as check not
completing because they consider it is not connected yet.
src/proto_tcp.c