]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: peers: Use right channel flag to consider the peer as connected
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 27 Jul 2022 08:49:31 +0000 (10:49 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 3 Aug 2022 07:56:38 +0000 (09:56 +0200)
commit642170a653d1587572fbce010156b49923f06947
tree50b191ba8c835bb0ef0fe91cfc936436a968dc7e
parent160fff665e326952ed35aea9be5ed93cefae9c2e
BUG/MINOR: peers: Use right channel flag to consider the peer as connected

When a peer open a new connection to another peer, it is considered as
connected when the hello message is sent. To do so, the peer applet was
relying on CF_WRITE_PARTIAL channel flag. However it is not the right flag
to use. This one is a transient flag. Depending on the scheduling, this flag
may be removed by the stream before the peer has a chance to see
it. Instead, CF_WROTE_DATA flag must be checked.

This patch is related to the issue #1799. It must be backported as far as
2.0.
src/peers.c