From ed0737527ec604cfd89530f2603c041e75f11794 Mon Sep 17 00:00:00 2001 From: BoundlessLearning Date: Tue, 29 Jul 2025 17:36:26 +0800 Subject: fix: Fix prolonged blocking in _ping_via_wget by setting "--tries=1" --- xmake/modules/net/ping.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.3.1