"vllm/executor/mp_distributed_executor.py" did not exist on "1b62745b1d00153c5e99879edaf0c2d7ceb4e2c6"
Unverified Commit 93491aef authored by yihong's avatar yihong Committed by GitHub
Browse files

[BugFix] make sure socket close (#15875)


Signed-off-by: default avataryihong0618 <zouzou0208@gmail.com>
parent 7acd539c
...@@ -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__":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment