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:
parent
16c4b08885
commit
8f187411cc
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user