close method of the AMQConnection class #1083
tlglhlchat
started this conversation in
General
Replies: 1 comment 7 replies
-
The latest release series is 5.18.x, please upgrade. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
Regarding the close method of the AMQConnection class in RabbitMQ 5.9.x-stable version,
when the value of sync is false, the channels managed by the ChannelManager class are not destroyed.
When using RabbitMQ in nio mode, calling the close method will cause the event loop thread to block.
This is the method details:
Reproduction steps
1.In the "processControlCommand" method of the "AMQConnection" class, when the "AMQP.Connection.Blocked" command is received, the "handleBlocked" method of the "BlockedListener" class is called. If an exception occurs at this point, it will trigger a call to the "close" method.
This is the method details:
Expected behavior
Non-blocking event loop thread.
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions