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 0cf4b82 commit 5961c56Copy full SHA for 5961c56
rabbitpy/channel0.py
@@ -260,8 +260,9 @@ def _on_connection_tune(self, frame_value):
260
frame_value.frame_max)
261
self._max_channels = self._negotiate(self._max_channels,
262
frame_value.channel_max)
263
- self._heartbeat = self._negotiate(self._heartbeat,
264
- frame_value.heartbeat)
+ if self._heartbeat > 0:
+ self._heartbeat = self._negotiate(self._heartbeat,
265
+ frame_value.heartbeat)
266
if self._heartbeat:
267
self._start_heartbeat_timer()
268
self.write_frame(self._build_tune_ok_frame())
0 commit comments