mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-27 20:02:17 -04:00
BUG/MINOR: qmux: reject too large initial record
Some checks are pending
Contrib / admin/halog/ (push) Waiting to run
Contrib / dev/flags/ (push) Waiting to run
Contrib / dev/haring/ (push) Waiting to run
Contrib / dev/hpack/ (push) Waiting to run
Contrib / dev/poll/ (push) Waiting to run
VTest / Generate Build Matrix (push) Waiting to run
VTest / (push) Blocked by required conditions
Windows / Windows, gcc, all features (push) Waiting to run
Some checks are pending
Contrib / admin/halog/ (push) Waiting to run
Contrib / dev/flags/ (push) Waiting to run
Contrib / dev/haring/ (push) Waiting to run
Contrib / dev/hpack/ (push) Waiting to run
Contrib / dev/poll/ (push) Waiting to run
VTest / Generate Build Matrix (push) Waiting to run
VTest / (push) Blocked by required conditions
Windows / Windows, gcc, all features (push) Waiting to run
Initial max_record_size is set to 16382. If the first received record size is larger, abort xprt_qmux layer immediately without having to wait for the timeout. No need to backport.
This commit is contained in:
parent
205312023a
commit
cd652efeca
1 changed files with 4 additions and 0 deletions
|
|
@ -97,6 +97,10 @@ int conn_recv_qmux(struct connection *conn, struct xprt_qmux_ctx *ctx, int flag)
|
|||
ctx->rxrlen = rlen;
|
||||
}
|
||||
|
||||
/* TODO initial max_record_size is limited to 16382 */
|
||||
if (ctx->rxrlen > b_size(buf))
|
||||
goto fail;
|
||||
|
||||
if (ctx->rxrlen > b_data(buf))
|
||||
goto not_ready;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue