mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-01-10 11:21:25 +01:00
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:
parent
8cb9993469
commit
2153d3ce73
@ -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.
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user