[Questions] Does the broker wait for the client confirmation before closing the connection? #15458
-
Community Support Policy
RabbitMQ version used4.2.3 Erlang version used28.3.x Operating system (distribution) useddebian-12-r1 How is RabbitMQ deployed?Community Docker image rabbitmq-diagnostics status outputSee https://www.rabbitmq.com/docs/cli to learn how to use rabbitmq-diagnostics DetailsLogs from node 1 (with sensitive values edited out)See https://www.rabbitmq.com/docs/logging to learn how to collect logs DetailsLogs from node 2 (if applicable, with sensitive values edited out)See https://www.rabbitmq.com/docs/logging to learn how to collect logs DetailsLogs from node 3 (if applicable, with sensitive values edited out)See https://www.rabbitmq.com/docs/logging to learn how to collect logs Detailsrabbitmq.confSee https://www.rabbitmq.com/docs/configure#config-location to learn how to find rabbitmq.conf file location DetailsSteps to deploy RabbitMQ clusterNot applicable Steps to reproduce the behavior in questionNot applicable advanced.configSee https://www.rabbitmq.com/docs/configure#config-location to learn how to find advanced.config file location DetailsApplication codeDetails# PASTE CODE HERE, BETWEEN BACKTICKSKubernetes deployment fileDetails# Relevant parts of K8S deployment that demonstrate how RabbitMQ is deployed
# PASTE YAML HERE, BETWEEN BACKTICKSWhat problem are you trying to solve?When the broker wants to close the AMQP connection it sends the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Client connections are closed in only a few scenarios:
I don't think it makes any practical difference in either of those cases but the answer is "yes, it does, with a timeout". With multiple timeouts, in fact, the heartbeat mechanism also acts as a timeout during a portion of the shutdown, plus a hard cap of 30 seconds (the Multiple connections are terminated in parallel. So the longest wait in the worst case scenario will be about 30 seconds for all connections of a user/on a node. During a shutdown, even less so because the server will stop its listeners at some point. |
Beta Was this translation helpful? Give feedback.
Client connections are closed in only a few scenarios:
I don't think it makes any practical difference in either of those cases but the answer is "yes, it does, with a timeout".
With multiple timeouts, in fact, the heartbeat mechanism also acts as a timeout during a portion of the shutdown, plus a hard cap of 30 seconds (the
?CLOSING_TIMEOUTvalue).Multiple connections are terminated…