mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-17 02:42:10 +08:00
athenad: set timeout when creating websocket
This commit is contained in:
@@ -443,7 +443,8 @@ def main():
|
||||
try:
|
||||
ws = create_connection(ws_uri,
|
||||
cookie="jwt=" + api.get_token(),
|
||||
enable_multithread=True)
|
||||
enable_multithread=True,
|
||||
timeout=1.0)
|
||||
cloudlog.event("athenad.main.connected_ws", ws_uri=ws_uri)
|
||||
ws.settimeout(1)
|
||||
conn_retries = 0
|
||||
|
||||
Reference in New Issue
Block a user