From c569a5a3c9e8b76175c68080bb55d2d6f72c05dc Mon Sep 17 00:00:00 2001 From: Russ Magee Date: Tue, 7 Nov 2023 00:38:51 -0800 Subject: [PATCH] Removed debug stmts to do with keepalive --- xsnet/net.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xsnet/net.go b/xsnet/net.go index 103086d..4460042 100644 --- a/xsnet/net.go +++ b/xsnet/net.go @@ -1643,14 +1643,14 @@ func (hc *Conn) keepaliveHelper() { nextDuration := 10000 bufTmp := []byte{0x55, 0xaa} _, err := hc.WritePacket(bufTmp, CSOKeepAlive) - logger.LogDebug(fmt.Sprintf("[keepalive]\n")) + //logger.LogDebug(fmt.Sprintf("[keepalive]\n")) if err != nil { logger.LogDebug(fmt.Sprintf("[ *** error - keepaliveHelper quitting *** ]\n")) break } time.Sleep(time.Duration(nextDuration) * time.Millisecond) hc.keepalive -= 1 - logger.LogDebug(fmt.Sprintf("[keepAlive is now %d]\n", hc.keepalive)) + //logger.LogDebug(fmt.Sprintf("[keepAlive is now %d]\n", hc.keepalive)) //if rand.Intn(8) == 0 { // hc.keepalive = 0