-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Call to Delivery.Ack blocks indefinitely in case of disconnection #19
Comments
Hi, this issue is a bit old, are you still experimenting this problem? I'm trying to reproduce the issue but till now I wasn't really able to. I tried to create a sort of unit test, Consuming message and closing connection (I tried from the rabbitMQ UI, turning of internet and stopping the broker) while consuming and before Delivery.Ack is called, but Ack is returning an error as expected. This is the code I was testing:
|
Hey thanks for looking into this. It has been a long time and I don't remember exactly how this issue came up. In the range loop consuming the messages there was some long running task (or a breakpoint during debugging)
Then while the long running task is running or while the breakpoint is hit, disconnect from the internet and allow the long running task to complete (or move on from the breakpoint) to the Ack part. |
HI @corcus I tried to put a sleep in place of breakpoint or to simulate an heavy load with a loop, then close the connection from UI, and continue with the Ack, but I wasn't really able to reproduce it. Let's close this one as now old, in case it will happen again to you please open a new one maybe with a trace if you are able to get it. Thanks! |
As at the moment not reproducible. |
Steps to reproduce
The call to Delivery.Ack blocks indefinitely instead of returning an error.
The text was updated successfully, but these errors were encountered: