-
Notifications
You must be signed in to change notification settings - Fork 303
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
Bunny doesn't heartbeat #48
Comments
Heartbeats in AMQP 0.9.1 are optional. Do you want to help implementing this functionality? |
Here is my use-case: I have a simple worker that pulls work from a queue, acts on it and then moves onto the next item. I do this using a The problem is that when the underlying connection dies, I don't know about it until the Heartbeats seemed exactly what I wanted. Is there another way? |
You can either implement heartbeat support or have a thread that publishes messages that won't be routed anywhere (using default exchange and a random string as routing key). At least RabbitMQ should treat connection activity as heartbeats, regardless of what the client specified as heartbeat interval. |
Please leave this issue open. At the very least it'll answer somebody else's question on the matter. At the best, it might attract a pull request. |
Will be solved after a rewrite |
There are no threads and no calls to
send_heartbeat
. Correct me if I'm wrong, but this means that enabling heartbeats will likely cause clients to drop more often than without it, especially if you're in a long runningsubscribe
block. This seems like really common behavior to me (wanting to subscribe to a queue) and it seems silly to push the responsibility of responding to heartbeats down to consumers of this library.The text was updated successfully, but these errors were encountered: