Browse Source

Adjust web-client download timeouts

We really want INACTIVITY_TIMEOUT (errors out if nothing new comes over
the network after the timeout) instead of TIMEOUT (errors out if the
total download time exceeds the given timeout).

We can still keep TIMEOUT, but bump it to something huge.

Fixes really slow (but not stuck) CI download making it impossible
to build PMP.
Vincent Lang 8 years ago
parent
commit
e582e4e103
1 changed files with 2 additions and 1 deletions
  1. 2 1
      CMakeModules/WebClientResources.cmake

+ 2 - 1
CMakeModules/WebClientResources.cmake

@@ -20,7 +20,8 @@ if(NOT SKIP_WEB_CLIENT)
     file(
       DOWNLOAD ${WEB_CLIENT_URL} ${CMAKE_CURRENT_BINARY_DIR}/${WEB_CLIENT_CPP}.tbz2
       EXPECTED_HASH SHA1=${WEB_CLIENT_HASH}
-      TIMEOUT 100
+      INACTIVITY_TIMEOUT 20
+      TIMEOUT 3600
       SHOW_PROGRESS
     )
   endif(NOT LOCAL_WEB_CLIENT)