Skip to content

Commit

Permalink
Merge pull request #9367 from rabbitmq/hibernate-after
Browse files Browse the repository at this point in the history
Avoid unnecessary hibernation in writer procs
  • Loading branch information
ansd authored Sep 12, 2023
2 parents aa9e4ab + 0eaaa19 commit c30ae67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deps/rabbit_common/src/rabbit_writer.erl
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
writer_gc_threshold
}).

-define(HIBERNATE_AFTER, 5000).
-define(HIBERNATE_AFTER, 6_000).
%% 1GB
-define(DEFAULT_GC_THRESHOLD, 1_000_000_000).

Expand Down
2 changes: 1 addition & 1 deletion deps/rabbitmq_amqp1_0/src/rabbit_amqp1_0_writer.erl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
-record(wstate, {sock, channel, frame_max, protocol, reader,
stats_timer, pending}).

-define(HIBERNATE_AFTER, 5000).
-define(HIBERNATE_AFTER, 6_000).
-define(AMQP_SASL_FRAME_TYPE, 1).

%%---------------------------------------------------------------------------
Expand Down

0 comments on commit c30ae67

Please sign in to comment.