Skip to content

Commit 267b540

Browse files
authored
update pd master mode time out to 30s. (#629)
1 parent 91d9e89 commit 267b540

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightllm/server/api_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ async def register_and_keep_alive(websocket: WebSocket):
319319
while True:
320320
try:
321321
# 等待接收消息,设置超时为10秒
322-
data = await asyncio.wait_for(websocket.receive_text(), timeout=10)
322+
data = await asyncio.wait_for(websocket.receive_text(), timeout=30)
323323
json_data = json.loads(data)
324324
if json_data.get("type") != "heartbeat":
325325
logger.warning(f"recive error messesage {json_data}")

0 commit comments

Comments
 (0)