aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar David Demelier <markand@malikania.fr>2019-08-29 14:05:27 +0200
committerGravatar Denys Vlasenko <vda.linux@googlemail.com>2019-10-21 16:54:40 +0200
commitd6a8784f2790f72b1d147e099f48aeb480b29f1a (patch)
tree8e1ca2317c47a19a39fdc3eb7a828a9f4e12bee5
parenta1c7a9e976f8e15d54d9232c2a6aa9fcda603f1b (diff)
downloadbusybox-d6a8784f2790f72b1d147e099f48aeb480b29f1a.tar.gz
busybox-d6a8784f2790f72b1d147e099f48aeb480b29f1a.tar.bz2
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/wget.c b/networking/wget.c
index b6f9d605a..9153264fc 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -1109,7 +1109,7 @@ static void download_one_url(const char *url)
* We are not sure it exists on remote side */
}
- redir_limit = 5;
+ redir_limit = 16;
resolve_lsa:
lsa = xhost2sockaddr(server.host, server.port);
if (!(option_mask32 & WGET_OPT_QUIET)) {