Skip to content

Commit 006ad7b

Browse files
authored
Merge pull request #674 from AutomationSolutionz/node-frequently-connecting-disconnecting-log
Added Auto Ping after interval and ping timeout for improved stability
2 parents f99a5c8 + fc2d33c commit 006ad7b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Framework/Utilities/live_log_service.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,11 @@ def run_ws_thread():
233233
next_ws = _build_websocket(ws_url)
234234
with connection_lock:
235235
ws = next_ws
236-
next_ws.run_forever(sslopt={"cert_reqs": ssl.CERT_NONE})
236+
next_ws.run_forever(
237+
sslopt={"cert_reqs": ssl.CERT_NONE},
238+
ping_interval=15,
239+
ping_timeout=10
240+
)
237241
except Exception as e:
238242
_log(f"Connection attempt failed: {e}")
239243
finally:

0 commit comments

Comments
 (0)