Skip to content

Commit

Permalink
chore(client): 增加连接超时时间
Browse files Browse the repository at this point in the history
  • Loading branch information
xiyaowong committed Apr 17, 2024
1 parent 37b4559 commit 42bfcb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion botoy/_internal/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ async def connect(self):
else:
logger.info(f"尝试连接[{connection_url}]...")
self.state = "connecting"
ws = await ws_connect(connection_url, open_timeout=3)
ws = await ws_connect(connection_url, open_timeout=10)
except InvalidURI as e:
logger.error(f"连接地址有误[{connection_url}]: {e}")
except asyncio.TimeoutError as e:
Expand Down

0 comments on commit 42bfcb4

Please sign in to comment.