From 8f187411cc6f9c3608c0df67a5b67169b9d2dbb6 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 18 Aug 2021 16:23:51 +1000 Subject: [PATCH] Set testing keep alive timeout to 1 millisecond If it's too fast, we get stuck trying to send keep alives rather than actually communicating with the peer. --- testing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing.go b/testing.go index ed825145..6a9d892d 100644 --- a/testing.go +++ b/testing.go @@ -14,7 +14,7 @@ func TestingConfig(t testing.TB) *ClientConfig { cfg.NoDefaultPortForwarding = true cfg.DisableAcceptRateLimiting = true cfg.ListenPort = 0 - cfg.KeepAliveTimeout = time.Microsecond + cfg.KeepAliveTimeout = time.Millisecond //cfg.Debug = true //cfg.Logger = cfg.Logger.WithText(func(m log.Msg) string { // t := m.Text() -- 2.44.0