From aaad3b25a7234ba143b557a3f5abc2c2bab6d847 Mon Sep 17 00:00:00 2001 From: Viktor Liu Date: Mon, 9 Feb 2026 02:02:18 +0800 Subject: [PATCH] Increase client startup timeout The client has to start mgmt, signal, relay and wireguard/netstack. If this times out, the client shuts down and never manages to start. --- proxy/internal/roundtrip/netbird.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/internal/roundtrip/netbird.go b/proxy/internal/roundtrip/netbird.go index 7128a422b..612158b3e 100644 --- a/proxy/internal/roundtrip/netbird.go +++ b/proxy/internal/roundtrip/netbird.go @@ -361,7 +361,7 @@ func (n *NetBird) RoundTrip(req *http.Request) (*http.Response, error) { // Attempt to start the client, if the client is already running then // it will return an error that we ignore, if this hits a timeout then // this request is unprocessable. - startCtx, cancel := context.WithTimeout(req.Context(), 10*time.Second) + startCtx, cancel := context.WithTimeout(req.Context(), 30*time.Second) defer cancel() if err := client.Start(startCtx); err != nil { if !errors.Is(err, embed.ErrClientAlreadyStarted) {