[PATCH 2/2] wget: add support for retries in http requests

Martin Lewis martin.lewis.x84 at gmail.com
Wed Dec 12 15:37:39 UTC 2018


Hello,

These patches add the -t (--tries) option to wget.
There was an issue that wget died on errors, so I had to change some
functions to return error so we are able to retry.
Also I had to replace the blocking functions (and the set_alarm) with time
outing functions (in first patch).
In order to imitate fgets(), and not reading char by char checking for
newline I had to buffer the read.
I've seen that many features can be turned off in config, but as I see it,
adding these #ifs would rather bloat the patch, while the default behaviour
without the flag should not change.
Also as for ftp retries don't work yet.
If you would like me to change anything in the patches I would gladly do
when I have some more time.

Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20181212/269ef62a/attachment-0001.html>


More information about the busybox mailing list