Skip to content

Commit b807887

Browse files
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.
1 parent ecf26b2 commit b807887

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/rabbit_common/include/rabbit_framing.hrl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
-define(FRAME_HEADER, 2).
1212
-define(FRAME_BODY, 3).
1313
-define(FRAME_HEARTBEAT, 8).
14-
-define(FRAME_MIN_SIZE, 4096).
14+
-define(FRAME_MIN_SIZE, 8192).
1515
-define(FRAME_END, 206).
1616
-define(REPLY_SUCCESS, 200).
1717
-define(CONTENT_TOO_LARGE, 311).

0 commit comments

Comments
 (0)