From: Willy Tarreau Date: Fri, 15 Dec 2017 10:56:29 +0000 (+0100) Subject: BUG/MINOR: h2: properly report a stream error on RST_STREAM X-Git-Tag: v1.9-dev1~563 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2153d3ce7370711172967936344cdfc8ff25dd0a;p=thirdparty%2Fhaproxy.git BUG/MINOR: h2: properly report a stream error on RST_STREAM We want to report such an error since H2 allows to differenciate between an end of stream and an abort. To be backported to 1.8. --- diff --git a/src/mux_h2.c b/src/mux_h2.c index 7f5806493c..838ce952db 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -1535,7 +1535,7 @@ static int h2c_handle_rst_stream(struct h2c *h2c, struct h2s *h2s) h2c_stream_close(h2c, h2s); if (h2s->cs) { - h2s->cs->flags |= CS_FL_EOS; + h2s->cs->flags |= CS_FL_EOS | CS_FL_ERROR; /* recv is used to force to detect CS_FL_EOS that wake() * doesn't handle in the stream-int code. */