processPing will send an immediate pong protocol response to the server. The server uses this mechanism to detect dead clients.
()
| 4018 | // processPing will send an immediate pong protocol response to the |
| 4019 | // server. The server uses this mechanism to detect dead clients. |
| 4020 | func (nc *Conn) processPing() { |
| 4021 | nc.sendProto(pongProto) |
| 4022 | } |
| 4023 | |
| 4024 | // processPong is used to process responses to the client's ping |
| 4025 | // messages. We use pings for the flush mechanism as well. |