From 038b20d13a56fd16e59ee3aeda3a4d21995132e3 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 9 May 2023 14:39:45 -0400 Subject: [PATCH] wsbs: increase msg rx timeout to 16 secs --- piker/data/_web_bs.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/piker/data/_web_bs.py b/piker/data/_web_bs.py index 17d44fdb..9c2753b1 100644 --- a/piker/data/_web_bs.py +++ b/piker/data/_web_bs.py @@ -156,6 +156,10 @@ async def _reconnect_forever( ) -> None: + # TODO: can we just report "where" in the call stack + # the client code is using the ws stream? + # Maybe we can just drop this since it's already in the log msg + # orefix? if fixture is not None: src_mod: str = fixture.__module__ else: @@ -295,8 +299,9 @@ async def open_autorecon_ws( fixture: AsyncContextManager | None = None, - # time in sec - msg_recv_timeout: float = 3, + # time in sec between msgs received before + # we presume connection might need a reset. + msg_recv_timeout: float = 16, # count of the number of above timeouts before connection reset reset_after: int = 3,