|
@ -332,7 +332,7 @@ FOR_LOOP: |
|
|
c.Logger.Debug("Send Ping") |
|
|
c.Logger.Debug("Send Ping") |
|
|
wire.WriteByte(packetTypePing, c.bufWriter, &n, &err) |
|
|
wire.WriteByte(packetTypePing, c.bufWriter, &n, &err) |
|
|
c.sendMonitor.Update(int(n)) |
|
|
c.sendMonitor.Update(int(n)) |
|
|
go c.flush() |
|
|
|
|
|
|
|
|
c.flush() |
|
|
c.Logger.Debug("Starting pong timer") |
|
|
c.Logger.Debug("Starting pong timer") |
|
|
c.pongTimer.Reset(c.config.pongTimeout) |
|
|
c.pongTimer.Reset(c.config.pongTimeout) |
|
|
case <-c.pongTimer.C: |
|
|
case <-c.pongTimer.C: |
|
|