]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] fixed connection establishment detection
authorWilly Tarreau <w@1wt.eu>
Mon, 30 Apr 2007 12:37:43 +0000 (14:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 30 Apr 2007 12:37:43 +0000 (14:37 +0200)
commit6996e15e160f37fa3ebc660b3ea766f3f7019b84
treee8e3a0a48a098e707318551589383700dd22bcba
parentc2c078362a8c8bf9e228bb3530020da2c73aacb1
[BUG] fixed connection establishment detection

Since the introduction of speculative I/O, it was not always possible
to correctly detect a connection establishment. Particularly, in TCP
mode, there is no data to send and getsockopt() returns no error. The
solution consists in trying a connect() again to get its diagnostic.
doc/internals/connect-status.txt [new file with mode: 0644]
src/checks.c
src/stream_sock.c