Effective value of consumer_timeout is not smaller than 60 seconds #5795
-
Hello. I'm fixing a bug in a Scala client library for RabbitMq. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
By default, RabbitMQ only checks every 60 seconds to see if consumers have exceeded the timeout. This is configured by the So, if for your test you'd like to have 2000ms consumer timeout, you need to also adjust
If you're curious where these values are used, see the following: https://github.com/rabbitmq/rabbitmq-server/blob/main/deps/rabbit/src/rabbit_channel.erl#L2793-L2795 https://github.com/rabbitmq/rabbitmq-server/blob/main/deps/rabbit/src/rabbit_channel.erl#L848-L858 https://github.com/rabbitmq/rabbitmq-server/blob/main/deps/rabbit/src/rabbit_channel.erl#L2827-L2849 |
Beta Was this translation helpful? Give feedback.
-
If you don't mind, link to the bug you're fixing as well as the work you're doing. Thanks! |
Beta Was this translation helpful? Give feedback.
-
@lukebakken thank you! I will try out your advice later. |
Beta Was this translation helpful? Give feedback.
-
@lukebakken I solved my issue, thank you once again |
Beta Was this translation helpful? Give feedback.
By default, RabbitMQ only checks every 60 seconds to see if consumers have exceeded the timeout. This is configured by the
channel_tick_interval
setting.So, if for your test you'd like to have 2000ms consumer timeout, you need to also adjust
channel_tick_interval
via theadvanced.config
file:If you're curious where these values are used, see the following:
https://github.com/rabbitmq/rabbitmq-server/blob/main/deps/rabbit/src/rabbit_channel.erl#L2793-L2795
https://github.com/rabbitmq/rabbitmq-server/blob/main/deps/rabbit/src/rabbit_channel.erl#L848-L858
https://github.com/rabbitmq/rabbitmq-server/blob/main/deps/rabbit/src/…