]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: connection: make conn_stream users also check for per-stream error flag
authorWilly Tarreau <w@1wt.eu>
Mon, 16 Oct 2017 13:17:17 +0000 (15:17 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Oct 2017 17:03:23 +0000 (18:03 +0100)
commit4ff3b89643d710750d5e7eec17479685e905dd80
tree24a60b7da3e492c3fa3291b1f51e03d2780b2591
parent9aaf778129f47819bab4b3dec7f1579cf0e0f84b
MINOR: connection: make conn_stream users also check for per-stream error flag

In a 1:1 connection:stream there's no problem relying on the connection
flags alone to check for errors. But in a mux, it will be possible to mark
certain streams in error without having to mark all of them. An example is
an H2 client sending RST_STREAM frames to abort a long download, or a parse
error requiring to abort only this specific stream.

This commit ensures that stream-interface and checks properly check for
CS_FL_ERROR in cs->flags wherever CO_FL_ERROR was in use. Most likely over
the long term, any check for CO_FL_ERROR will have to disappear.
src/checks.c
src/mux_pt.c
src/stream_interface.c