Skip to content

Commit

Permalink
Set a default for consumer_timeout
Browse files Browse the repository at this point in the history
So that faulty consumers that will never ack a pending messages have
their channels closed after 15 minutes.
  • Loading branch information
kjnilsson committed Apr 21, 2021
1 parent a17dde4 commit 2ab05b8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deps/rabbit/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ define PROJECT_ENV
%% see rabbitmq-server#248
%% and rabbitmq-server#667
{channel_operation_timeout, 15000},
%% 15 minutes
{consumer_timeout, 900000},

%% see rabbitmq-server#486
{autocluster,
Expand Down
7 changes: 7 additions & 0 deletions deps/rabbit/docs/rabbitmq.conf.example
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,13 @@
## on Windows.
# motd_file = /etc/rabbitmq/motd

## Consumer timeout
## If a message delivered to a consumer has not been acknowledge before this timer
## triggers the channel will be force closed by the broker. This ensure that
## faultly consumers that never ack will not hold on to messages indefinitely.
##
# consumer_timeout = 900000

## ----------------------------------------------------------------------------
## Advanced Erlang Networking/Clustering Options.
##
Expand Down

0 comments on commit 2ab05b8

Please sign in to comment.