-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
cmd/go: fetching dependencies can be very aggressive when going via an HTTP proxy #33669
Comments
It's kind of to do with having to download the internet, and once you hit a proxy with all the request for git object, it chokes up. One option would be to have retries, as I suggested above, another could be to provide a flag that allows user to set a pause interval between requests. |
I figured the title of the issue was too prescriptive, I renamed it to reflect what the issue is really about. |
Does using a |
Retries are #28194. That said, I'm not sure that there is anything we should do on the Ideally, your HTTP proxy should be robust enough to just not read from the incoming socket when it doesn't have the capacity to spare, rather than returning spurious 407s for some of the requests. |
That said, I've been thinking about moving the parallelism limits from the various |
Change https://golang.org/cl/220080 mentions this issue: |
Updates golang/go#36460 Updates golang/go#27900 Updates golang/go#26955 Updates golang/go#30831 Updates golang/go#32058 Updates golang/go#32380 Updates golang/go#32419 Updates golang/go#33370 Updates golang/go#33669 Updates golang/go#36369 Change-Id: I1d4644e3e8b4e688c2fc5a569312495e5072b7d7 Reviewed-on: https://go-review.googlesource.com/c/proposal/+/220080 Reviewed-by: Russ Cox <[email protected]>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?windows/amd64
What did you do?
http_proxy
environment variablegit clone https://github.com/weaveworks/eksctl && cd eksctl
go build ./cmd/eksctl
What did you expect to see?
All dependencies get downloaded and binary gets built. If errors occur, there are a few retries with a back-off.
What did you see instead?
Some dependencies get downloaded, some fail to download with 407 error in
git fetch
. Binary is not built. I had to rerungo build
multiple times before it succeeded.The text was updated successfully, but these errors were encountered: