From 891df5c74bb0ded4b560f9d225d6864b894a76f4 Mon Sep 17 00:00:00 2001 From: danohn <82357071+danohn@users.noreply.github.com> Date: Fri, 29 Aug 2025 02:57:17 +0000 Subject: [PATCH 1/2] Update wait timer to 200ms Former-commit-id: 0765b4daca70bef576d154e6f293f5c7908bc755 --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index a9cf81e..480671e 100644 --- a/main.go +++ b/main.go @@ -537,7 +537,7 @@ func runOlmMainWithArgs(ctx context.Context, args []string) { close(stopHolepunch) // wait 10 milliseconds to ensure the previous connection is closed - time.Sleep(10 * time.Millisecond) + time.Sleep(200 * time.Millisecond) // if there is an existing tunnel then close it if dev != nil { From 0d3c34e23f3c8b7f254b67adc499cd7be9acb230 Mon Sep 17 00:00:00 2001 From: danohn <82357071+danohn@users.noreply.github.com> Date: Fri, 29 Aug 2025 13:13:09 +1000 Subject: [PATCH 2/2] Update wait time to 500ms Former-commit-id: 07d5ebdde1128702b8e6bd82b949b498fc569328 --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 480671e..9c33de4 100644 --- a/main.go +++ b/main.go @@ -537,7 +537,8 @@ func runOlmMainWithArgs(ctx context.Context, args []string) { close(stopHolepunch) // wait 10 milliseconds to ensure the previous connection is closed - time.Sleep(200 * time.Millisecond) + logger.Debug("Waiting 500 milliseconds to ensure previous connection is closed") + time.Sleep(500 * time.Millisecond) // if there is an existing tunnel then close it if dev != nil {