def _PingLoop(self):
    while self.isActive:
      gevent.sleep(random.randint(30, 40))
      if self.isActive:
        self._SendPingMessage()
      else:
        break
Periodically pings the remote server.
dataset/ETHPy150Open steveniemitz/scales/scales/thriftmux/sink.py/SocketTransportSink._PingLoop