From 650c74c013da148b125e56b4b5366bab1dab75c4 Mon Sep 17 00:00:00 2001 From: jdl Date: Mon, 15 Sep 2025 21:18:27 +0200 Subject: [PATCH] Added unix socket client timeout --- peer/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/peer/main.go b/peer/main.go index 509cf63..f2db699 100644 --- a/peer/main.go +++ b/peer/main.go @@ -8,6 +8,7 @@ import ( "net/http" "net/netip" "os" + "time" ) // Usage: @@ -106,6 +107,7 @@ func main_status() { return net.Dial("unix", statusSocketPath(netName)) }, }, + Timeout: 8 * time.Second, } getURL := "http://unix" + statusSocketPath(netName)