소스 검색

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)