Skip to content

Commit 73d920f

Browse files
committed
fix: remove read timeout in hypercorn
1 parent 9cc4d6c commit 73d920f

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

lightllm/server/api_start.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from .embed_cache.manager import start_cache_manager
1111
from lightllm.utils.log_utils import init_logger
1212
from lightllm.utils.envs_utils import set_env_start_args, set_unique_server_name, get_unique_server_name
13-
from lightllm.utils.envs_utils import get_lightllm_gunicorn_time_out_seconds, get_lightllm_gunicorn_keep_alive
13+
from lightllm.utils.envs_utils import get_lightllm_gunicorn_keep_alive
1414
from .detokenization.manager import start_detokenization_process
1515
from .router.manager import start_router_process
1616
from lightllm.utils.process_check import is_process_active
@@ -418,8 +418,6 @@ def pd_master_start(args):
418418
"-",
419419
"--preload",
420420
"lightllm.server.api_http:app",
421-
"--read-timeout",
422-
f"{get_lightllm_gunicorn_time_out_seconds()}",
423421
"--keep-alive",
424422
f"{get_lightllm_gunicorn_keep_alive()}",
425423
]

lightllm/utils/envs_utils.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ def get_deepep_num_max_dispatch_tokens_per_rank():
7474
return int(os.getenv("NUM_MAX_DISPATCH_TOKENS_PER_RANK", 256))
7575

7676

77-
def get_lightllm_gunicorn_time_out_seconds():
78-
return int(os.getenv("LIGHTLMM_GUNICORN_TIME_OUT", 180))
79-
80-
8177
def get_lightllm_gunicorn_keep_alive():
8278
return int(os.getenv("LIGHTLMM_GUNICORN_KEEP_ALIVE", 10))
8379

0 commit comments

Comments
 (0)