]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: tcp: remove the specific I/O callbacks for TCP connection probes
authorWilly Tarreau <wtarreau@exceliance.fr>
Mon, 23 Jul 2012 13:07:23 +0000 (15:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 2 Sep 2012 19:51:29 +0000 (21:51 +0200)
commit2da156fe5e01c4cc1e2f22bfb2a559da99494567
treedc9d49e0caa7bae3ac8d5123a20392b123207db5
parent2c6be84b3a94150e4f74f256ba7ef12be7a42f36
MAJOR: tcp: remove the specific I/O callbacks for TCP connection probes

Use a single tcp_connect_probe() instead of tcp_connect_write() and
tcp_connect_read(). We call this one only when no data layer function
have been processed, so this is a fallback to test for completion of
a connection attempt.

With this done, we don't have the need for any direct I/O callback
anymore.

The function still relies on ->write() to wake the stream interface up,
so it's not finished.
include/proto/proto_tcp.h
src/connection.c
src/proto_tcp.c