mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 23:27:04 +02:00
BUG/MINOR: mux-h1: Only report a SE error on demux error
When a demux error is reported by the H1S, an error must be reported on the SE and not an end-of-input or an end-of-stream. So SE_FL_ERROR flag must be set and not SE_FL_EOI/SE_FL_EOS. It seems this bug has no impact. So there is no reason to backport it.
This commit is contained in:
parent
e56e718c82
commit
4ccca7efcf
@ -2324,11 +2324,7 @@ static size_t h1_process_demux(struct h1c *h1c, struct buffer *buf, size_t count
|
|||||||
|
|
||||||
err:
|
err:
|
||||||
htx_to_buf(htx, buf);
|
htx_to_buf(htx, buf);
|
||||||
se_fl_set(h1s->sd, SE_FL_EOI);
|
se_fl_set(h1s->sd, SE_FL_ERROR);
|
||||||
if (h1c->state < H1_CS_RUNNING) {
|
|
||||||
h1c->flags |= H1C_F_EOS;
|
|
||||||
se_fl_set(h1s->sd, SE_FL_EOS);
|
|
||||||
}
|
|
||||||
TRACE_DEVEL("leaving on error", H1_EV_RX_DATA|H1_EV_STRM_ERR, h1c->conn, h1s);
|
TRACE_DEVEL("leaving on error", H1_EV_RX_DATA|H1_EV_STRM_ERR, h1c->conn, h1s);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user