Skip to contentSkip to conversation

bitbake: Network test timeouts reduced

PATCH New Cristian Iorga 1 participant 1 message Nov 19, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake: Network test timeouts reduced

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

Fixes [YOCTO #3248]

---
 bitbake/lib/bb/fetch2/wget.py |    2 +-
 meta/conf/bitbake.conf        |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
bitbake/lib/bb/fetch2/wget.py +1 -1
index ea99198..1b5bce0 100644
@@ -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
meta/conf/bitbake.conf +1 -1
index cf779a4..b5dd2d8 100644
@@ -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"
 
Signature · 1 line
1.7.10.4