Skip to content

Commit

Permalink
reset heartbeat timeout when receiving any response from the server (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielePalaia authored Oct 2, 2024
1 parent 7bad17d commit 55548c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rstream/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,9 @@ async def _listener(self) -> None:
if not self.is_connection_alive():
break

# reset heartbeat time when we receive any response from the socket
self._last_heartbeat = time.monotonic()

logger.debug("Received frame: %s", frame)

_key = frame.key, frame.corr_id
Expand Down

0 comments on commit 55548c7

Please sign in to comment.