You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A colleague and I noticed that amqp.Channel's method InspectQueue is sometimes blocking when the connection is lost. I have included a minimal example of the code used below.
I tested this code under two different circumstances:
AMQP_URL had the address of a local RabbitMQ server running in docker (rabbitmq:3-management). Once the connection was established I stopped the docker container. The program stopped as expected (see expected_output.txt).
AMQP_URL had the address of our production RabbitMQ server. Once the connection was established I disconnected the internet. The program never stopped and appeared to be stuck at the method channel.QueueInspect (see blocking_output.txt).
Additional information: I ran this code inside GoLand with go version go1.16.2 darwin/amd64 . I removed the preamble but left in the exit message .
@michaelklishin I noticed you have said that Team RabbitMQ plans on forking this library (#497 (comment)) and that @streadway lacks time (#497 (comment)). Is there anyway we can move such issues to this planned library?
A colleague and I noticed that
amqp.Channel
's methodInspectQueue
is sometimes blocking when the connection is lost. I have included a minimal example of the code used below.I tested this code under two different circumstances:
AMQP_URL
had the address of a local RabbitMQ server running in docker (rabbitmq:3-management
). Once the connection was established I stopped the docker container. The program stopped as expected (see expected_output.txt).AMQP_URL
had the address of our production RabbitMQ server. Once the connection was established I disconnected the internet. The program never stopped and appeared to be stuck at the methodchannel.QueueInspect
(seeblocking_output.txt).
Additional information: I ran this code inside GoLand with go version
go1.16.2 darwin/amd64
. I removed the preamble but left in the exit message .Hopefully, this problem should be reproducible.
Finally, adding
before the for loop and
to the select statement doesn't prevent the blocking output.
The text was updated successfully, but these errors were encountered: