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
Issue when using UNIX socket: Connection #0 is still name resolving, can't reuse #9664
Labels
Comments
Thanks for the report and the patch. I think it can be simplified somewhat. Let me make an attempt in a PR that you can test... |
bagder
added a commit
that referenced
this issue
Oct 7, 2022
Reported-by: Vasiliy Ulyanov Fixes #9664
Try #9670! |
Works fine:
|
Thanks for taking care of that! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello. I observe an issue while running some tests that use curl with a unix socket: https://gitlab.com/nbdkit/nbdkit/-/blob/master/tests/test-curl-header-script.c
The tests trigger several HTTP requests. The first one goes well:
while on the second I see error message
Connection #0 is still name resolving, can't reuse
:This eventually causes problems with the test execution. I can reproduce this with libcurl
7.85.0
.After running with a couple of previous versions, eventually I was able to bisect the commit 0f23341.
I am very new to the curl codebase, but it seems to me that after the mentioned change, the
primay_ip
field is not properly updated anymore when UNIX sockets are used:curl/lib/url.c
Lines 1253 to 1258 in 83de62b
Also in the log, the output of
Curl_verboseconnect
isConnected to localhost () port 80 (#1)
and here theprimary_ip
is empty as well (in()
).I was able to fix the problem with the bellow patch by handling the newly introduced
TRNSPRT_UNIX
inCurl_updateconninfo
:I just wanted to share the patch and get some feedback. Would that be a proper way to fix the issue?
I did this
I expected the following
curl/libcurl version
[curl -V output]
operating system
The text was updated successfully, but these errors were encountered: