BUG/MINOR: mux-h2: make sure to honor KILL_CONN in do_shut{r,w}
authorWilly Tarreau <w@1wt.eu>
Tue, 14 May 2019 08:44:40 +0000 (10:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 14 May 2019 13:47:57 +0000 (15:47 +0200)
commit3cf69fe6b2d591faa736c24ef87a46156ca07de5
treef1414b8cfbafdeb4f3461f3fe247a7a8d2a4556e
parentaebbe5ef7229f0b54ad037e85df1f3eeb6f95fbd
BUG/MINOR: mux-h2: make sure to honor KILL_CONN in do_shut{r,w}

If the stream closes and quits while there's no room in the mux buffer
to send an RST frame, next time it is attempted it will not lead to
the connection being closed because the conn_stream will have been
released and the KILL_CONN flag with it as well.

This patch reserves a new H2_SF_KILL_CONN flag that is copied from
the CS when calling shut{r,w} so that the stream remains autonomous
on this even when the conn_stream leaves.

This should ideally be backported to 1.9 though it depends on several
previous patches that may or may not be suitable for backporting. The
severity is very low so there's no need to insist in case of trouble.
src/mux_h2.c