Skip to content

Commit 6ba69b1

Browse files
committed
Timeout connection after 3 minutes without data instead of 2 (2 was cutting it kind of short, causing false positives)
1 parent 2425489 commit 6ba69b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pyhilo/graphql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,8 +621,8 @@ async def subscribe_to_location_updated(
621621
)
622622

623623
# Seconds without any SSE event before treating the connection as stalled.
624-
# Hilo's server sends periodic keepalive comments; 120 s is a safe margin.
625-
_SSE_KEEPALIVE_TIMEOUT = 120
624+
# Hilo's server sends periodic keepalive comments; 180 s is a safe margin.
625+
_SSE_KEEPALIVE_TIMEOUT = 180
626626
# Reconnection back-off: starts at _BACKOFF_BASE, doubles each failure, caps at _BACKOFF_MAX.
627627
_BACKOFF_BASE = 5
628628
_BACKOFF_MAX = 300 # 5 minutes

0 commit comments

Comments
 (0)