Skip to content

Commit

Permalink
update pd master mode time out to 30s. (#629)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiworldwzj authored Nov 29, 2024
1 parent 91d9e89 commit 267b540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightllm/server/api_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ async def register_and_keep_alive(websocket: WebSocket):
while True:
try:
# 等待接收消息,设置超时为10秒
data = await asyncio.wait_for(websocket.receive_text(), timeout=10)
data = await asyncio.wait_for(websocket.receive_text(), timeout=30)
json_data = json.loads(data)
if json_data.get("type") != "heartbeat":
logger.warning(f"recive error messesage {json_data}")
Expand Down

0 comments on commit 267b540

Please sign in to comment.