]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: streams: Don't switch from SI_ST_CON to SI_ST_DIS on read0.
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 21 May 2019 15:43:50 +0000 (17:43 +0200)
committerOlivier Houchard <cognet@ci0.org>
Tue, 21 May 2019 17:05:09 +0000 (19:05 +0200)
commitaacc405c1f2a4173de36ba1a0bf2416d9c958376
treec24cc1786aff9ef37c66d383def0bcdf4fa2d3f4
parent0ba4f483d26678c8f825c4de6bc20840708c0b6c
BUG/MEDIUM: streams: Don't switch from SI_ST_CON to SI_ST_DIS on read0.

When we receive a read0, and we're still in SI_ST_CON state (so on an
outgoing conneciton), don't immediately switch to SI_ST_DIS, or, we would
never call sess_establish(), and so the analysers will never run.
Instead, let sess_establish() handle that case, and switch to SI_ST_DIS if
we already have CF_SHUTR on the channel.

This should be backported to 1.9.
src/stream.c
src/stream_interface.c