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.
This commit is contained in:
Willy Tarreau 2017-12-15 11:56:29 +01:00
parent 8cb9993469
commit 2153d3ce73

View File

@ -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.
*/