瀏覽代碼

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 年之前
父節點
當前提交
e582e4e103
共有 1 個文件被更改,包括 2 次插入1 次删除
  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)