Open PeterEFinch opened 3 years ago
@michaelklishin I noticed you have said that Team RabbitMQ plans on forking this library (https://github.com/streadway/amqp/issues/497#issuecomment-791068860) and that @streadway lacks time (https://github.com/streadway/amqp/issues/497#issuecomment-791263157). 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
(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 .Hopefully, this problem should be reproducible.
Finally, adding
before the for loop and
to the select statement doesn't prevent the blocking output.