-
Notifications
You must be signed in to change notification settings - Fork 15
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
curl fails to download after a certain time, but wget does not. #11
Comments
Hi @manojkiraneda, Unfortunately seems to be caused by some interaction between the client and the server when download speeds are slow. I limited the download speeds on my router, and even when using a web browser, the download still fails. Here is an example of a similar issue, although I wouldn't go so far as to say it is the exact same. Outside of contacting openbmc, I'm not sure of a solution, because it seems to occur independent of the client. |
Hi @rewitt1 Thanks for looking at this issue. I agree that it's probably because of the server, but wget seems to work as it is doing a re-try, can we do similar settings with curl as well, so that we don't break out with a partial file in case of bad servers? That would really help. I guess something like this might help. Here is a snip of wget doing a retry & resuming from a closed connection from server.
|
The most obvious ways I can think of fixing this would be one of the following:
I'm not sure which of these I like best yet. |
To solve only this problem, I would personally vote for 1 as retry only kicks-in when the connection is closed and has no effect in case of a better server. But if you want to provide the user the facility to give his own parameters, then I would go for 2. |
@rewitt1 sorry for asking, but when can i have this fix ? I was trying to use this container for our CI purpose and was blocked because of this. |
Hi @manojkiraneda, I would like to give you an ETA, but I'm unsure of when I'll be able to get to it. If you need a solution sooner, you can build the container image locally, substituting in the curl arguments you need. |
sure thanks @rewitt1 will do. |
The container seems to use curl to download the .sh file and that is failing for some reason, but the wget on the same file seems to work. Can you guys help me to figure out what is the issue here ?
Even with wget, it seems like we are reconnection after certain time, do i need to enable some option in curl to get this working ?
The text was updated successfully, but these errors were encountered: