You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the http.Client in Go to download large files from the same host repeatedly. Notably, these requests take a considerable amount of time due to the download of large files.
The client hangs indefinitely when reading the response body after a significant number of requests. In the same process, If the http.Client is used to make requests to a different host, the response body is still successfully read, suggesting that the issue might be specific to requests made to the same host within the same process.
What did you expect to see?
The default http.Client should continue reading the response body for each request, regardless of the number of previous requests made to the same host
The text was updated successfully, but these errors were encountered:
Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
Go version
go version go1.20 linux/amd64
Output of
go env
in your module/workspace:What did you do?
When using the http.Client in Go to download large files from the same host repeatedly. Notably, these requests take a considerable amount of time due to the download of large files.
`
client = &http.Client{}
res, err := client.Do(req)
if err != nil {
return
}
defer res.Body.Close()
`
What did you see happen?
The client hangs indefinitely when reading the response body after a significant number of requests. In the same process, If the http.Client is used to make requests to a different host, the response body is still successfully read, suggesting that the issue might be specific to requests made to the same host within the same process.
What did you expect to see?
The default http.Client should continue reading the response body for each request, regardless of the number of previous requests made to the same host
The text was updated successfully, but these errors were encountered: