2
0
mirror of synced 2025-02-23 14:18:13 +00:00

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.
This commit is contained in:
Matt Joiner 2021-08-18 16:23:51 +10:00
parent 16c4b08885
commit 8f187411cc

View File

@ -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()