We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d7b36a commit 734605dCopy full SHA for 734605d
amqp/connection.py
@@ -754,7 +754,7 @@ def heartbeat_tick(self, rate=2):
754
self.prev_sent, self.prev_recv = sent_now, recv_now
755
756
# send a heartbeat if it's time to do so
757
- if now > self.last_heartbeat_sent + self.heartbeat:
+ if now > self.last_heartbeat_sent + self.heartbeat / rate:
758
AMQP_HEARTBEAT_LOGGER.debug(
759
'heartbeat_tick: sending heartbeat for connection %s',
760
self._connection_id)
0 commit comments