Hi, Small housekeeping for wget.
- Lauri -- http://www.fastmail.fm - One of many happy users: http://www.fastmail.fm/help/overview_quotes.html
From 13755e22b0dc9655d5e5d05c2a0d06873a8ef526 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen <cur...@operamail.com> Date: Tue, 8 Oct 2013 16:40:20 +0300 Subject: [PATCH 1/2] wget: make default timeout configurable, remove a duplicate line Signed-off-by: Lauri Kasanen <cur...@operamail.com> --- networking/Config.src | 8 ++++++++ networking/wget.c | 3 +-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/networking/Config.src b/networking/Config.src index e1ae0c9..0a483ae 100644 --- a/networking/Config.src +++ b/networking/Config.src @@ -981,6 +981,14 @@ config FEATURE_WGET_TIMEOUT connection initialization). When FEATURE_WGET_LONG_OPTIONS is also enabled, the --timeout option will work in addition to -T. +config WGET_DEFAULT_TIMEOUT + int "Default wget timeout" + default 900 + range 1 2000 + depends on FEATURE_WGET_TIMEOUT + help + The default time, in seconds, to wait before wget gives up. + config ZCIP bool "zcip" default y diff --git a/networking/wget.c b/networking/wget.c index 5dac2b5..f604828 100644 --- a/networking/wget.c +++ b/networking/wget.c @@ -87,7 +87,6 @@ struct globals { #define G (*ptr_to_globals) #define INIT_G() do { \ SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \ - IF_FEATURE_WGET_TIMEOUT(G.timeout_seconds = 900;) \ } while (0) @@ -944,7 +943,7 @@ int wget_main(int argc UNUSED_PARAM, char **argv) INIT_G(); - IF_FEATURE_WGET_TIMEOUT(G.timeout_seconds = 900;) + IF_FEATURE_WGET_TIMEOUT(G.timeout_seconds = CONFIG_WGET_DEFAULT_TIMEOUT;) G.proxy_flag = "on"; /* use proxies if env vars are set */ G.user_agent = "Wget"; /* "User-Agent" header field */ -- 1.8.3.1
_______________________________________________ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox