mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 08:21:53 +08:00
[BugFix] Enable control socket disable option in API server (#6545)
* [BugFix] Enable control socket disable option in API server * Update requirements.txt * Update requirements.txt
This commit is contained in:
@@ -660,6 +660,7 @@ def launch_api_server() -> None:
|
||||
api_server_logger.info(f"args: {args.__dict__}")
|
||||
# fd_start_span("FD_START")
|
||||
|
||||
# set control_socket_disable=True to avoid conflicts when running multiple instances
|
||||
options = {
|
||||
"bind": f"{args.host}:{args.port}",
|
||||
"workers": args.workers,
|
||||
@@ -667,6 +668,7 @@ def launch_api_server() -> None:
|
||||
"loglevel": "info",
|
||||
"graceful_timeout": args.timeout_graceful_shutdown,
|
||||
"timeout": args.timeout,
|
||||
"control_socket_disable": True,
|
||||
}
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user