-
Notifications
You must be signed in to change notification settings - Fork 168
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
Heartbeat loop disconnects the socket unexpectedly #219
Comments
hi @wiredmb |
Believe this is resolved in the latest version. |
It is not. We're experiencing this issue right now. We're on |
Cause is that Source: |
@jasonrbriggs Have you seen this one? The error persists and it's a behavior I see quite often. I'll make a small change and send you a pull request for review that should fix this particular problem. I'm not sure if it has some implications or impacts downstream as I'm not that deep in your code yet. |
If there aren't any items in `next_events`, `min(next_events)` fails with a `ValueError` Tries to fix: jasonrbriggs#219
I'm using Stomp.py Version 4.1.15 and connecting the stomp consumer to Amazon MQ broker. I set heartbeat parameter to <0,30000>. Broker is sending heartbeat every 30 secs. Here is the scenario where consumer disconnects the connection:
received_heartbeat
andnow
which is 11 secs and sleeps for 34 secs (receive_sleep
is 45 secs).received_heartbeat
andnow
which is slightly greater thanreceive_sleep
(in my case, 45.02 secs) and disconnects the connection with heartbeat timeout event.The possible solution could be to add
grace time
while checking fordiff_receive > self.receive_sleep
in heartbeat loop. Please suggest.The text was updated successfully, but these errors were encountered: