summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-07-05 23:20:06 +0800
committerruki <[email protected]>2022-07-05 23:20:06 +0800
commit9e225815c8cd7f7da6267e90befd114d920f5321 (patch)
tree3e1445be8fc006da7ebc887990fe27aecf658f75
parentddb5ac292c20767c6cbd97db4c6e9f4042feeea1 (diff)
improve client config
-rw-r--r--xmake/modules/private/service/distcc_build/client.lua1
-rw-r--r--xmake/modules/private/service/remote_build/client.lua1
-rw-r--r--xmake/modules/private/service/remote_cache/client.lua1
3 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/private/service/distcc_build/client.lua b/xmake/modules/private/service/distcc_build/client.lua
index b413a498f..7520be46b 100644
--- a/xmake/modules/private/service/distcc_build/client.lua
+++ b/xmake/modules/private/service/distcc_build/client.lua
@@ -59,6 +59,7 @@ function distcc_build_client:init()
-- init timeout
self._SEND_TIMEOUT = config.get("distcc_build.send_timeout") or config.get("send_timeout") or -1
self._RECV_TIMEOUT = config.get("distcc_build.recv_timeout") or config.get("recv_timeout") or -1
+ self._CONNECT_TIMEOUT = config.get("distcc_build.connect_timeout") or config.get("connect_timeout") or -1
end
-- get class
diff --git a/xmake/modules/private/service/remote_build/client.lua b/xmake/modules/private/service/remote_build/client.lua
index 9ed4abb84..95ad5110e 100644
--- a/xmake/modules/private/service/remote_build/client.lua
+++ b/xmake/modules/private/service/remote_build/client.lua
@@ -64,6 +64,7 @@ function remote_build_client:init()
-- init timeout
self._SEND_TIMEOUT = config.get("remote_build.send_timeout") or config.get("send_timeout") or -1
self._RECV_TIMEOUT = config.get("remote_build.recv_timeout") or config.get("recv_timeout") or -1
+ self._CONNECT_TIMEOUT = config.get("remote_build.connect_timeout") or config.get("connect_timeout") or -1
end
-- get class
diff --git a/xmake/modules/private/service/remote_cache/client.lua b/xmake/modules/private/service/remote_cache/client.lua
index c006d93b3..cd3d8d7d7 100644
--- a/xmake/modules/private/service/remote_cache/client.lua
+++ b/xmake/modules/private/service/remote_cache/client.lua
@@ -62,6 +62,7 @@ function remote_cache_client:init()
-- init timeout
self._SEND_TIMEOUT = config.get("remote_cache.send_timeout") or config.get("send_timeout") or -1
self._RECV_TIMEOUT = config.get("remote_cache.recv_timeout") or config.get("recv_timeout") or -1
+ self._CONNECT_TIMEOUT = config.get("remote_cache.connect_timeout") or config.get("connect_timeout") or -1
end
-- get class