-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nov 6 rebase (sans vllm-project#6143) #468
Conversation
Signed-off-by: Russell Bryant <[email protected]>
…ct#10010) Signed-off-by: Richard Liu <[email protected]>
Signed-off-by: Chenghao Yang <[email protected]> Signed-off-by: youkaichao <[email protected]> Co-authored-by: Chenghao Yang <[email protected]> Co-authored-by: youkaichao <[email protected]>
…9928) Signed-off-by: Russell Bryant <[email protected]>
…-project#9851) Signed-off-by: Linkun Chen <[email protected]> Co-authored-by: Linkun Chen <[email protected]>
Signed-off-by: Jee Jee Li <[email protected]>
) Signed-off-by: mgoin <[email protected]>
…9932) Signed-off-by: mgoin <[email protected]>
…-project#10048) Signed-off-by: youkaichao <[email protected]>
…10047) Signed-off-by: Zifei Tong <[email protected]>
…-project#9931) Signed-off-by: Wallas Santos <[email protected]>
…llm-project#9730) Co-authored-by: LiuXiaoxuanPKU <[email protected]>
…10059) Signed-off-by: youkaichao <[email protected]>
Signed-off-by: DarkLight1337 <[email protected]>
…t#10045) Signed-off-by: Peter Salas <[email protected]>
…Tokenizer (vllm-project#10051) Signed-off-by: Travis Johnson <[email protected]>
Signed-off-by: Alex Rakowski <[email protected]> Signed-off-by: Alex Rakowski <[email protected]>
… type (vllm-project#10054) Signed-off-by: Zifei Tong <[email protected]>
Signed-off-by: Woosuk Kwon <[email protected]>
…ct#10064) Signed-off-by: youkaichao <[email protected]>
Signed-off-by: Aaron Pham <[email protected]>
Signed-off-by: Isotr0py <[email protected]>
@@ -569,7 +569,8 @@ | |||
# This avoids race conditions with ray. | |||
# see https://github.com/vllm-project/vllm/issues/8204 | |||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |||
sock.bind(("", args.port)) | |||
sock.bind((args.host or "", args.port)) |
Check warning
Code scanning / CodeQL
Binding a socket to all network interfaces Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix AI 2 months ago
To fix the problem, we need to bind the socket to a specific network interface instead of all interfaces. This can be achieved by modifying the sock.bind
call to use a specific IP address. The best way to do this without changing existing functionality is to use the IP address provided in the args.host
parameter. If args.host
is not provided, we should raise an error or use a default secure IP address.
- Modify the
sock.bind
call on line 572 to useargs.host
directly. - Ensure that
args.host
is not an empty string or0.0.0.0
. If it is, raise an error or use a default secure IP address.
-
Copy modified lines R572-R574
@@ -571,3 +571,5 @@ | ||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | ||
sock.bind((args.host or "", args.port)) | ||
if not args.host or args.host in ["", "0.0.0.0"]: | ||
raise ValueError("Invalid host address. Please provide a specific IP address.") | ||
sock.bind((args.host, args.port)) | ||
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) |
This PR adds all commits before vllm-project#6143 without vllm-project#6143.