Set a default for consumer_timeout

So that faulty consumers that will never ack a pending messages have
their channels closed after 15 minutes.
This commit is contained in:
kjnilsson 2021-04-20 17:44:14 +01:00
parent a17dde45bc
commit 2ab05b8ff5
2 changed files with 9 additions and 0 deletions

View File

@ -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,

View File

@ -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.
##