- Notifications
You must be signed in to change notification settings - Fork586
close method of the AMQConnection class#1083
-
Describe the bugRegarding the close method of the AMQConnection class in RabbitMQ 5.9.x-stable version, Reproduction steps1.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. Expected behaviorNon-blocking event loop thread. Additional contextNo response |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment 7 replies
-
The latest release series is 5.18.x, please upgrade. |
BetaWas this translation helpful?Give feedback.
All reactions
-
I cannot provide individual projects. The issue you are experiencing seems to be intermittent. The problem occurs when receiving the AMQP.Connection.Blocked instruction from the server. This exception is triggered because you have customized the BlockedCallback and thrown an exception in the handling method. As a result, the close method is called. |
BetaWas this translation helpful?Give feedback.
All reactions
-
I don't see how the thread loop can get blocked by just looking at the code, I'll need to reproduce the issue. In the meantime, could you:
|
BetaWas this translation helpful?Give feedback.
All reactions
-
@tlglhlchat I pusheda fix, can you try the5.19.0 snapshot? |
BetaWas this translation helpful?Give feedback.
All reactions
-
I have set up a simple test project to reproduce the above issue. After waiting for a few minutes, check the RabbitMQ management interface and you will find that the connection has been closed. However, you can still send message push requests through the test program without any exceptions being thrown. |
BetaWas this translation helpful?Give feedback.
All reactions
-
@tlglhlchat thanks for the sample. Can you try the latest snapshot? (See my comment above) |
BetaWas this translation helpful?Give feedback.
All reactions
This discussion was converted from issue #1082 on August 02, 2023 07:12.