Skip to content

Commit d213746

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

2 files changed

Lines changed: 1 addition & 11 deletions

File tree

lightllm/server/api_start.py

Lines changed: 1 addition & 7 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
@@ -351,8 +351,6 @@ def normal_or_p_d_start(args):
351351
"--error-logfile",
352352
"-",
353353
"lightllm.server.api_http:app",
354-
"--read-timeout",
355-
f"{get_lightllm_gunicorn_time_out_seconds()}",
356354
"--keep-alive",
357355
f"{get_lightllm_gunicorn_keep_alive()}",
358356
]
@@ -418,8 +416,6 @@ def pd_master_start(args):
418416
"-",
419417
"--preload",
420418
"lightllm.server.api_http:app",
421-
"--read-timeout",
422-
f"{get_lightllm_gunicorn_time_out_seconds()}",
423419
"--keep-alive",
424420
f"{get_lightllm_gunicorn_keep_alive()}",
425421
]
@@ -458,8 +454,6 @@ def config_server_start(args):
458454
"-",
459455
"--preload",
460456
"lightllm.server.config_server.api_http:app",
461-
"--read-timeout",
462-
f"{get_lightllm_gunicorn_time_out_seconds()}",
463457
"--keep-alive",
464458
f"{get_lightllm_gunicorn_keep_alive()}",
465459
]

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)