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

2018-12-12 Thread Martin Lewis
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

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

2018-12-12 Thread Martin Lewis
Replace die handlers with error returning so download_one_url can retry from the beginning. When retries is 1 (default) the behaviour should be the same as before. Signed-off-by: Martin Lewis --- networking/wget.c | 120 ++ 1 file changed, 95