streadway / amqp

Go client for AMQP 0.9.1
http://godoc.org/github.com/streadway/amqp
BSD 2-Clause "Simplified" License
4.88k stars 621 forks source link

consume stops receiving messages after reconnecting #526

Open Andrea-Arguello opened 2 years ago

Andrea-Arguello commented 2 years ago

Hello, I've been working on a project that should have a reconnection feature, in case a consumer were to disconnect due to being idle for a while, with a similar approach to the one used here.

However, I've noticed that after reconnecting after a forced close from the UI, the channel stops receiving messages all together. I work with several workers at once, so this one is just rendered useless. However, the connection is reestablished.

Now, I was wondering if this is an issue on my part, or if there is something that I am overlooking? I am more than happy to share my code if needed, but I want to understand why this could be happening in the first place.

Andrea-Arguello commented 2 years ago

I think my issue is related to this https://github.com/rabbitmq/amqp091-go/issues/18.