mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-10 09:07:02 +02:00
BUG/MINOR: mux-h1: Make format errors during output formatting fatal
These errors are unexpected at this staged and there is not much more to do than to close the connection and leave. So now, when it happens, the flag H1C_F_CS_ERROR is set on the H1 connection and the flag HTX_FL_PARSING_ERROR is set on the channel's HTX message. This patch must be backported to 2.0 and 1.9.
This commit is contained in:
parent
e5438b749c
commit
d87d3fab25
@ -1740,7 +1740,10 @@ static size_t h1_process_output(struct h1c *h1c, struct buffer *buf, size_t coun
|
||||
|
||||
default:
|
||||
error:
|
||||
/* Unexpected error during output processing */
|
||||
chn_htx->flags |= HTX_FL_PARSING_ERROR;
|
||||
h1s->flags |= errflag;
|
||||
h1c->flags |= H1C_F_CS_ERROR;
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user