mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-16 13:00:38 -04:00
BUG/MINOR: qmux: reject too large initial record
Some checks failed
Contrib / admin/halog/ (push) Has been cancelled
Contrib / dev/flags/ (push) Has been cancelled
Contrib / dev/haring/ (push) Has been cancelled
Contrib / dev/hpack/ (push) Has been cancelled
Contrib / dev/poll/ (push) Has been cancelled
VTest / Generate Build Matrix (push) Has been cancelled
Windows / Windows, gcc, all features (push) Has been cancelled
VTest / (push) Has been cancelled
Some checks failed
Contrib / admin/halog/ (push) Has been cancelled
Contrib / dev/flags/ (push) Has been cancelled
Contrib / dev/haring/ (push) Has been cancelled
Contrib / dev/hpack/ (push) Has been cancelled
Contrib / dev/poll/ (push) Has been cancelled
VTest / Generate Build Matrix (push) Has been cancelled
Windows / Windows, gcc, all features (push) Has been cancelled
VTest / (push) Has been cancelled
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