diff options
| author | BoundlessLearning <[email protected]> | 2025-07-29 17:36:26 +0800 |
|---|---|---|
| committer | BoundlessLearning <[email protected]> | 2025-07-29 17:36:26 +0800 |
| commit | ed0737527ec604cfd89530f2603c041e75f11794 (patch) | |
| tree | 46c94dea09f9003ec70f889208ab12b5b1f71e24 | |
| parent | b3d31f41800d12235e56260e7e34821b8200dfe4 (diff) | |
fix: Fix prolonged blocking in _ping_via_wget by setting "--tries=1"
| -rw-r--r-- | xmake/modules/net/ping.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/net/ping.lua b/xmake/modules/net/ping.lua index ca62db525..f9a6d5ff0 100644 --- a/xmake/modules/net/ping.lua +++ b/xmake/modules/net/ping.lua @@ -73,7 +73,7 @@ end function _ping_via_wget(wget, host) local data = try { function () local t = os.mclock() - os.runv(wget.program, {"-O", os.nuldev(), "--timeout=1", host}) + os.runv(wget.program, {"-O", os.nuldev(), "--tries=1", "--timeout=1", host}) t = os.mclock() - t return t end } |
