Open rohitmukherjee opened 8 years ago
Hi, I won't have time to have to look at this before the end of the week, is it ok with you ? To be sure that I understand the problem, is there anything in the rabbitmq log when it happens ? i.e is it a failure to reconnect after a network/broker problem, or is it a bug in the library which hangs even though there are no network/broker issue ? This library was designed to handle reconnection automatically i.e in most cases, it you stop and restart the broker then all channels should automatically be renewed => what happens to your service when you stop then restart the broker ?
Thanks
Hi,
Thanks for the quick reply. Sure, you can take a look at the end of the week.
Hi, any update on this issue?
Hi, Sorry for the delay. I had a quick look at this over the weekend but could not find anything really useful. I guess that you could try using longer timeouts and see if there is an improvement ? The only vaguely similar issue that I can remember was caused by a firewall that would block (but not close) long lasting idle connections... One thing that could help would be to run a very basic test (like a basic producer that sends a message every N seconds and a basic consumer that prints the message) that connects to the same broker from the same server and see if it fails when your application fails ? Would that be ok on your side ?
Hi Fabrice,
Firstly, thanks for building such a useful library. We use it in a service that publishes email requests onto a queue. Normally, we don't face any issues but sometimes we face the following exception:
After we encounter this exception a service restart is required to reconnect to the queue. We'd like if we could just reconnect without having to restart the service.
A simplified example is shown below:
The sendMail function is what encounters the disconnect, how would you recommend recovering and reconnecting? I considered recreating the publisher but am not sure of whether that's a good idea.