-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
[Bugfix] Fix some cases of The client socket has timed out after 600s while trying to connect to
#10492
Conversation
👋 Hi! Thank you for contributing to the vLLM project. Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can do one of these:
🚀 |
Signed-off-by: Yuhong Guo <yuhong.gyh@antgroup.com>
1c97bbc
to
3852b43
Compare
This PR is ready for review. |
@DarkLight1337 could you take a look at this PR? |
any reference for this? is it common? |
@youkaichao This is not a standard but it is used in many systems, since it is a common name. e.g.
|
|
@guoyuhong please check #10644 |
This pull request has merge conflicts that must be resolved before it can be |
Close this PR since #10644 is merged. |
vLLM works fine in most of my environments. However, there are always some envs that have following error:

The client socket has timed out after 600s while trying to connect to
In this case, I need to set the environment variable
export VLLM_HOST_IP="127.0.0.1"
. However, for a new user, he/she may not realize what happens.After digging into this problem, I found that this is caused by the automatically set environment variable
HOST_IP
.In many cases, we use vLLM in a container. The container may use the Bridge Mode for the network, which means the container has different IP from the host machine. And sometimes, the container is started with the environment variable
HOST_IP
set to the host machine's IP. In current logic ofget_ip()
function andenv.VLLM_HOST_IP
, ifHOST_IP
is set butVLLM_HOST_IP
is not set,get_ip()
will returnHOST_IP
without trying to get a real IP.The solution is to try the best to find the local IP first. The env
HOST_IP
is used only when we cannot find the local IP from code andVLLM_HOST_IP
is not set.May FIX #5779 #6650 #7136