From 267b540c5f883fc59d35f3f861ed5484814cffdf Mon Sep 17 00:00:00 2001 From: hiworldwzj <30762946+hiworldwzj@users.noreply.github.com> Date: Fri, 29 Nov 2024 19:51:16 +0800 Subject: [PATCH] update pd master mode time out to 30s. (#629) --- lightllm/server/api_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightllm/server/api_server.py b/lightllm/server/api_server.py index 0d6df889..7f624c99 100755 --- a/lightllm/server/api_server.py +++ b/lightllm/server/api_server.py @@ -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}")