Increase initial AMQP 0-9-1 connection frame size limit

Before the client authenticates, the standard
frame_max is not used. Instead, the limit is
a special constant.

This is fine for password or x.509 certificate-based
authentication but not for some JWT tokens,
which can vary in size, and take multiple
kilobytes.

8 kB specifically is the default HTTP header
length limit used by Nginx.
Sounds like this value was good enough
for a lot of Bearer headers with JWT tokens.

Closes #13541.
This commit is contained in:
Michael Klishin 2025-03-15 18:22:55 -04:00
parent ecf26b2670
commit b8078874a7
No known key found for this signature in database
GPG Key ID: 44BF2725475205B2
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@
-define(FRAME_HEADER, 2).
-define(FRAME_BODY, 3).
-define(FRAME_HEARTBEAT, 8).
-define(FRAME_MIN_SIZE, 4096).
-define(FRAME_MIN_SIZE, 8192).
-define(FRAME_END, 206).
-define(REPLY_SUCCESS, 200).
-define(CONTENT_TOO_LARGE, 311).