Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikkel Krautz <mikkel@krautz.dk>2018-01-20 17:24:42 +0300
committerMikkel Krautz <mikkel@krautz.dk>2018-01-20 17:24:42 +0300
commitedd1de098a2b07bd7f6308d7ed49b407dc7b6721 (patch)
tree495ceeec4b059c282e0d130f3732e0a3c47eb763 /scripts/travis-ci
parenta189969521081565b8bda93d253670370778d471 (diff)
scripts/travis-ci: bump apt timeout in before_install.bash.
After switching to using a mirror of MXE on dl.mumble.info we've begun running into timeouts from apt on Travis CI. For example: E: Failed to fetch https://dl.mumble.info/mirror/pkg.mxe.cc/repos/apt/debian/pool/main/m/mxe-x86-64-unknown-linux-gnu-cmake/mxe-x86-64-unknown-linux-gnu-cmake_3.5.2-20170208_amd64.deb Operation too slow. Less than 10 bytes/sec transferred the last 10 seconds The error is from cURL, and it means that the options CURLOPT_LOW_SPEED_LIMIT and CURLOPT_LOW_SPEED_TIME are set quite low. (See https://github.com/curl/curl/blob/bb0ffcc36fd46298e02f943b255ee5d6553c06dc/lib/speedcheck.c) To fix this, we set the Acquire::http::Timeout option to 120 seconds. This causes apt's https transport to set CURLOPT_LOW_SPEED_TIME to 120. (See https://github.com/Debian/apt/blob/debian/wheezy/methods/https.cc#L224-L230) Fixes mumble-voip/mumble#3312
Diffstat (limited to 'scripts/travis-ci')
-rwxr-xr-xscripts/travis-ci/before_install.bash7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/travis-ci/before_install.bash b/scripts/travis-ci/before_install.bash
index ce47a7085..7b1847418 100755
--- a/scripts/travis-ci/before_install.bash
+++ b/scripts/travis-ci/before_install.bash
@@ -8,6 +8,13 @@
MUMBLE_HOST_DEB=${MUMBLE_HOST/_/-}
if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
+ # Bump the apt http timeout to 120 seconds.
+ # Without this, we'd regularly get timeout errors
+ # from our MXE mirror on dl.mumble.info.
+ #
+ # See mumble-voip/mumble#3312 for more information.
+ echo 'Acquire::http::Timeout "120";' | sudo tee /etc/apt/apt.conf.d/99zzztimeout
+
if [ "${MUMBLE_QT}" == "qt4" ] && [ "${MUMBLE_HOST}" == "x86_64-linux-gnu" ]; then
sudo apt-get -qq update
sudo apt-get build-dep -qq mumble