Removed debug stmts to do with keepalive

This commit is contained in:
Russ Magee 2023-11-07 00:38:51 -08:00
parent 36799ba9e7
commit c569a5a3c9
1 changed files with 2 additions and 2 deletions

View File

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