Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
93491aef
Unverified
Commit
93491aef
authored
Apr 02, 2025
by
yihong
Committed by
GitHub
Apr 01, 2025
Browse files
[BugFix] make sure socket close (#15875)
Signed-off-by:
yihong0618
<
zouzou0208@gmail.com
>
parent
7acd539c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
vllm/entrypoints/openai/api_server.py
vllm/entrypoints/openai/api_server.py
+4
-3
No files found.
vllm/entrypoints/openai/api_server.py
View file @
93491aef
...
@@ -1098,9 +1098,10 @@ async def run_server(args, **uvicorn_kwargs) -> None:
...
@@ -1098,9 +1098,10 @@ async def run_server(args, **uvicorn_kwargs) -> None:
)
)
# NB: Await server shutdown only after the backend context is exited
# NB: Await server shutdown only after the backend context is exited
await
shutdown_task
try
:
await
shutdown_task
sock
.
close
()
finally
:
sock
.
close
()
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment