]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: stream-int: switch from SI_ST_CON to SI_ST_RDY on I/O
authorWilly Tarreau <w@1wt.eu>
Wed, 5 Jun 2019 14:43:44 +0000 (16:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 6 Jun 2019 14:36:19 +0000 (16:36 +0200)
commitb27f54a88cb817a8840136ed7dca8c933c01acea
tree86db08703f40337dc3148f51ec5231c67b0c4587
parent4f283fa60479e42794e9e76a87e173ff2f1102e7
MAJOR: stream-int: switch from SI_ST_CON to SI_ST_RDY on I/O

Now whenever an I/O event succeeds during a connection attempt, we
switch the stream-int's state to SI_ST_RDY. This allows si_update()
to update R/W timeouts on the channel and end points to start to
consume outgoing data and to subscribe to lower layers in case of
failure. It also allows chk_rcv() to be performed on the other side
to enable data forwarding and make sure we don't fall into a situation
where no more events happen and nothing moves anymore.
src/stream_interface.c