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

login
register
mail settings
Submitter Cristian Iorga
Date Nov. 19, 2012, 2:13 p.m.
Message ID <1353334392-7949-1-git-send-email-cristian.iorga@intel.com>
Download mbox | patch
Permalink /patch/39241/
State New
Headers show

Comments

Cristian Iorga - Nov. 19, 2012, 2:13 p.m.
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@intel.com>
---
 bitbake/lib/bb/fetch2/wget.py |    2 +-
 meta/conf/bitbake.conf        |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Patch

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"