Closed yunxu0604 closed 5 months ago
Hi! I tried to reproduce your issue by using a modified version of the quickstart samples from root README.md. It worked just fine for me. Publishing messages works just fine after the RabbitMQ broker is back up and connection is reestablished. In my case it took about 16s from the point publishing fails because of lost connection until it worked again (of course this 16s mainly is resulting in the time the broker needs to shutdown and restart).
Do you have some more details on how to reproduce it?
@turtletramp Thank you for your reply! I estimate it's a bug in github.com/rabbitmq/amqp091-go, because after upgrading to v1.10.0, it worked fine and the bug can be reproduced using v1.7.0.
I'm upgrading the dependency, and closing, ty
When the RabbitMQ server restarts, this library detects the connection error and then rebuilds the connection, but the channel is not rebuilt. Consequently, subsequent calls to publish result in errors: Exception (504) Reason: "channel/connection is not open" .