mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 13:51:26 +02:00
MINOR: mux-h2/traces: also suggest invalid header upon parsing error
Historically the parsing error used to apply only to too large headers, so this is what has been reported in traces. But nowadays we can also reject invalid characters, and when this happens the trace is a bit misleading, so let's mention "or invalid".
This commit is contained in:
parent
d13a80abb7
commit
db97bb42d9
@ -4940,7 +4940,7 @@ next_frame:
|
|||||||
|
|
||||||
if (outlen < 0 || htx_free_space(htx) < global.tune.maxrewrite) {
|
if (outlen < 0 || htx_free_space(htx) < global.tune.maxrewrite) {
|
||||||
/* too large headers? this is a stream error only */
|
/* too large headers? this is a stream error only */
|
||||||
TRACE_STATE("message headers too large", H2_EV_RX_FRAME|H2_EV_RX_HDR|H2_EV_H2S_ERR|H2_EV_PROTO_ERR, h2c->conn);
|
TRACE_STATE("message headers too large or invalid", H2_EV_RX_FRAME|H2_EV_RX_HDR|H2_EV_H2S_ERR|H2_EV_PROTO_ERR, h2c->conn);
|
||||||
htx->flags |= HTX_FL_PARSING_ERROR;
|
htx->flags |= HTX_FL_PARSING_ERROR;
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user