-
Notifications
You must be signed in to change notification settings - Fork 181
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
Unexpected behavior with localhost and readtimeout #672
Comments
fredrikekre
added a commit
to fredrikekre/HTTP.jl
that referenced
this issue
Feb 19, 2021
fredrikekre
added a commit
to fredrikekre/HTTP.jl
that referenced
this issue
Feb 19, 2021
fredrikekre
added a commit
to fredrikekre/HTTP.jl
that referenced
this issue
Feb 19, 2021
fredrikekre
added a commit
to fredrikekre/HTTP.jl
that referenced
this issue
Feb 19, 2021
quinnj
pushed a commit
that referenced
this issue
Feb 20, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Over in JuliaPackaging/PkgServer.jl#115 there are problems connecting to a server with the combination of
localhost
andreadtimeout
.Looking at the code I found two things:
localhost
is hardcoded to ipv4, but only withreadtimeout=0
:HTTP.jl/src/ConnectionPool.jl
Line 653 in a469ac6
getalladdrinfo("localhost")[1]
:HTTP.jl/src/ConnectionPool.jl
Line 659 in a469ac6
getalladdrinfo("localhost")[1]
is the ipv6 address HTTP can't connect.getaddrinfo(host)[2:end]
.I suggest that HTTP.jl should loop over
getalladdrinfo(host)
in both code paths. That is whatcurl
seems to do for example (even with--retry=no
which is the default).Related: #511, #512, #428
CC: @staticfloat
The text was updated successfully, but these errors were encountered: