Skip to content

Commit b17134f

Browse files
Use a frame_max of 131072 by default
Just like nearly all client libraries do. In RabbitMQ 4.1.0, the pre-authentication default changes to 8192 to accommodate for larger JWT frames, which the current value in this client won't be compatible with. See [1]. This default matches what RabbitMQ itself, the Java and .NET clients have been using since 2007. 1. https://github.com/rabbitmq/rabbitmq-server/blob/main/release-notes/4.1.0.md#initial-amqp-0-9-1-maximum-frame-size
1 parent b2c82f5 commit b17134f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/connect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function openFrames(vhost, query, credentials, extraClientProperties) {
6666

6767
// tune-ok
6868
'channelMax': intOrDefault(query.channelMax, 0),
69-
'frameMax': intOrDefault(query.frameMax, 0x1000),
69+
'frameMax': intOrDefault(query.frameMax, 131072),
7070
'heartbeat': intOrDefault(query.heartbeat, 0),
7171

7272
// open

0 commit comments

Comments
 (0)