net/http: Get request hangs until timeout, but responds immediately over curl #61823
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, I reproduced it on 1.19.2, but also on 1.20.7 and 1.20
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I have not included the go.dev link because when I run the program from there I get a no route to host error, which is not what I am seeing on my machine. I am able to fetch the resource through my browser fine, and curl also returns it correctly.
What did you expect to see?
The response body containing the XML that the link returns via curl or through the browser. I also tested making a GET request from a test java program and it returned the XML correctly.
What did you see instead?
We see this error both when opening the connection from our own machine, as well as from our k8s cluster hosted on GCP. I have searched around and seen that six years ago, a similar issue to mine was reported, #21301, which was said to be a duplicate of #20979. However, none of the listed solutions seem to resolve my issue.
When requesting the resource through curl, I get the following response:
The text was updated successfully, but these errors were encountered: