]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: stream_interface: Don't add SI_FL_ERR the state is < SI_ST_CON.
authorOlivier Houchard <ohouchard@haproxy.com>
Mon, 24 Jun 2019 14:08:08 +0000 (16:08 +0200)
committerOlivier Houchard <cognet@ci0.org>
Mon, 24 Jun 2019 17:00:16 +0000 (19:00 +0200)
commitc31e2cbd28d53210b7184091bb64137c806d7957
tree03fc812c8615b453362cc291e25ca88f0796b1c5
parent16866670dd0fcb0dbb5d747a467feb008951be49
BUG/MEDIUM: stream_interface: Don't add SI_FL_ERR the state is < SI_ST_CON.

Only add SI_FL_ERR if the stream_interface is connected, or is attempting
a connection. We may get there because the stream_interface's tasklet
was woken up, but before it actually runs, process_stream() may be called,
detect that there were an error, and change the state of the stream_interface
to SI_ST_TAR. When the stream_interface's tasklet then run, the connection
may still have CO_FL_ERROR, but that error was already accounted for, so
just ignore it.

This should be backported to 2.0.
src/stream_interface.c