[bitbake-devel] [PATCH] bitbake: Network test timeouts reduced

Cristian Iorga cristian.iorga at intel.com
Mon Nov 19 14:13:12 UTC 2012


Network timeouts affecting wget
connectivity test are reduced,
so that Hob network test will fail faster.

Fixes [YOCTO #3248]

Signed-off-by: Cristian Iorga <cristian.iorga at intel.com>
---
 bitbake/lib/bb/fetch2/wget.py |    2 +-
 meta/conf/bitbake.conf        |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py
index ea99198..1b5bce0 100644
--- a/bitbake/lib/bb/fetch2/wget.py
+++ b/bitbake/lib/bb/fetch2/wget.py
@@ -63,7 +63,7 @@ class Wget(FetchMethod):
     def download(self, uri, ud, d, checkonly = False):
         """Fetch urls"""
 
-        basecmd = d.getVar("FETCHCMD_wget", True) or "/usr/bin/env wget -t 2 -T 30 -nv --passive-ftp --no-check-certificate"
+        basecmd = d.getVar("FETCHCMD_wget", True) or "/usr/bin/env wget -t 2 -T 5 -nv --passive-ftp --no-check-certificate"
 
         if 'downloadfilename' in ud.parm:
             basecmd += " -O ${DL_DIR}/" + ud.localfile
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index cf779a4..b5dd2d8 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -588,7 +588,7 @@ XORG_MIRROR = "http://xorg.freedesktop.org/releases"
 
 FETCHCMD_svn = "/usr/bin/env svn --non-interactive --trust-server-cert"
 FETCHCMD_cvs = "/usr/bin/env cvs"
-FETCHCMD_wget = "/usr/bin/env wget -t 2 -T 30 -nv --passive-ftp --no-check-certificate"
+FETCHCMD_wget = "/usr/bin/env wget -t 2 -T 5 -nv --passive-ftp --no-check-certificate"
 FETCHCMD_bzr = "/usr/bin/env bzr"
 FETCHCMD_hg = "/usr/bin/env hg"
 
-- 
1.7.10.4





More information about the bitbake-devel mailing list