From 2153d3ce7370711172967936344cdfc8ff25dd0a Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 15 Dec 2017 11:56:29 +0100 Subject: [PATCH] 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. --- src/mux_h2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mux_h2.c b/src/mux_h2.c index 7f5806493..838ce952d 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. */