diff options
author | David Demelier <markand@malikania.fr> | 2019-08-29 14:05:27 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2019-09-12 12:09:30 +0200 |
commit | 4a9daf2b93e455b444f43f9cde309c7f235f6fb5 (patch) | |
tree | 241c5ac5432c1e5dea8c86f1e5222730c43ceb45 | |
parent | 7f89ebe18ff2f5b3b5e8b2d617d682cb1d56293b (diff) | |
download | busybox-w32-4a9daf2b93e455b444f43f9cde309c7f235f6fb5.tar.gz busybox-w32-4a9daf2b93e455b444f43f9cde309c7f235f6fb5.tar.bz2 busybox-w32-4a9daf2b93e455b444f43f9cde309c7f235f6fb5.zip |
wget: increase redirections limit
Some hosting services like sourceforge perform a lot of relocations
before actually serving the file. Example of current limitation:
busybox wget http://sourceforge.net/projects/fluxbox/files/fluxbox/1.3.7/fluxbox-1.3.7.tar.xz
Connecting to sourceforge.net (216.105.38.13:80)
Connecting to sourceforge.net (216.105.38.13:443)
Connecting to sourceforge.net (216.105.38.13:443)
Connecting to sourceforge.net (216.105.38.13:443)
Connecting to downloads.sourceforge.net (216.105.38.13:443)
wget: too many redirections
Signed-off-by: David Demelier <markand@malikania.fr>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/wget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/wget.c b/networking/wget.c index 9e5a40b6f..f2fc9e215 100644 --- a/networking/wget.c +++ b/networking/wget.c | |||
@@ -1109,7 +1109,7 @@ static void download_one_url(const char *url) | |||
1109 | * We are not sure it exists on remote side */ | 1109 | * We are not sure it exists on remote side */ |
1110 | } | 1110 | } |
1111 | 1111 | ||
1112 | redir_limit = 5; | 1112 | redir_limit = 16; |
1113 | resolve_lsa: | 1113 | resolve_lsa: |
1114 | lsa = xhost2sockaddr(server.host, server.port); | 1114 | lsa = xhost2sockaddr(server.host, server.port); |
1115 | if (!(option_mask32 & WGET_OPT_QUIET)) { | 1115 | if (!(option_mask32 & WGET_OPT_QUIET)) { |