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
b7f186bb
Unverified
Commit
b7f186bb
authored
Sep 19, 2025
by
Nick Hill
Committed by
GitHub
Sep 20, 2025
Browse files
[BugFix] Exclude self when checking for port collision (#25286)
Signed-off-by:
Nick Hill
<
nhill@redhat.com
>
parent
36429096
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
vllm/utils/__init__.py
vllm/utils/__init__.py
+3
-1
No files found.
vllm/utils/__init__.py
View file @
b7f186bb
...
...
@@ -987,8 +987,10 @@ def find_process_using_port(port: int) -> Optional[psutil.Process]:
if
sys
.
platform
.
startswith
(
"darwin"
):
return
None
our_pid
=
os
.
getpid
()
for
conn
in
psutil
.
net_connections
():
if
conn
.
laddr
.
port
==
port
:
if
conn
.
laddr
.
port
==
port
and
(
conn
.
pid
is
not
None
and
conn
.
pid
!=
our_pid
):
try
:
return
psutil
.
Process
(
conn
.
pid
)
except
psutil
.
NoSuchProcess
:
...
...
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