-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
fix(heartbeat): stop heartbeat if connection is not active #403
Conversation
We shouldn't emit a readable event ourselves, it really should come from the socket itself. It can be a good lead for investigation though (and I have plan for an overhaul of all of this btw). Do you use TLS or plain tcp ? |
9f234cd
to
8107d9a
Compare
plain TCP, lemme update the pr |
8107d9a
to
53cfa52
Compare
53cfa52
to
0b11dfb
Compare
@Keruspe PR is updated. |
I like that last commit. When dumping #404 and letting it rest in my head I thought of something similar. There's a couple of things that should be updated though. I think we should have a dedicated error for this. The check should be done at the very beginning of the self.timeout.map block, we should use cancel there and return None. We should check for 4*timeout (see comment in #404) |
aec7214
to
ab731c0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly LGTM, will fixup a couple of cosmetic stuff and issue a release
Fixed #401
If you stop your RabbitMQ cluster with a grace period 0, it will still say it is connected.
By sending a readable event it returns: