From 770bed1f53afed679f938d2b8521f667d8cbdf86 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Tue, 6 May 2008 20:30:49 +0000 Subject: Add a new option to set connection timeout while downloading. /trunk/scripts/functions | 16 8 8 0 ++++++++-------- /trunk/config/global/download_extract.in | 25 25 0 0 +++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 8 deletions(-) --- config/global/download_extract.in | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'config') diff --git a/config/global/download_extract.in b/config/global/download_extract.in index b23f88eb..d638ab09 100644 --- a/config/global/download_extract.in +++ b/config/global/download_extract.in @@ -20,6 +20,31 @@ config ONLY_DOWNLOAD Usefull to pre-retrieve the tarballs before going off-line. +config CONNECT_TIMEOUT + int + prompt "connection timeout" + default 10 + help + From the curl manual: + Maximum time in seconds that you allow the connection to the server to take. + + The scenario is as follows; + - some enterprise networks have firewalls that prohibit FTP traffic, while + still allowing HTTP + - most download sites have http:// equivalent for the ftp:// URL + - after this number of seconds, it is considered that the connection could + not be established, and the next URL in the list is tried, until we reach + an URL that will go through the firewall, most probably an http:// URL. + + If you have a slow network, you'd better set this value higher than the default + 10s. If you know a firewall is blocking connections, but your network is globally + fast, you can try to lower this value to jump more quickly to allowed URLs. YMMV. + + Note that this value applies equally to wget if you have that installed. + + Of course, you'd be better off to use a proxy, as offered by the following + choice of options. + choice bool prompt "Proxy type" -- cgit v1.2.3