Skip to content

Commit 4cac6a9

Browse files
STOMP: extract a constant
1 parent ecbc1f1 commit 4cac6a9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

deps/rabbitmq_stomp/include/rabbit_stomp.hrl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,5 @@
4040
ssl_hash]).
4141

4242
-define(STOMP_GUIDE_URL, <<"https://rabbitmq.com/stomp.html">>).
43+
44+
-define(DEFAULT_MAX_FRAME_SIZE, 4 * 1024 * 1024).

deps/rabbitmq_stomp/src/rabbit_stomp_reader.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ init([SupHelperPid, Ref, Configuration]) ->
8181
_ = register_resource_alarm(),
8282

8383
LoginTimeout = application:get_env(rabbitmq_stomp, login_timeout, 10_000),
84-
MaxFrameSize = application:get_env(rabbitmq_stomp, max_frame_size, 4 * 1024 * 1024),
84+
MaxFrameSize = application:get_env(rabbitmq_stomp, max_frame_size, ?DEFAULT_MAX_FRAME_SIZE),
8585
erlang:send_after(LoginTimeout, self(), login_timeout),
8686

8787
gen_server2:enter_loop(?MODULE, [],

0 commit comments

Comments
 (0)