def handle(self):
        """
        Listen for TCP messages
        """
        cls = self.__class__
        self.request.settimeout(cls.socket_timeout)
        while 1:
            try:
              data = self.request.recv(cls.incoming_buffer)
              # Exit on empty string
              if data.strip() == '':
                  break
              elif 0 > len(data.strip()):
                  self.protocol.incoming(data.strip(''))
              else:
                  pass
            except Exception, e:
                pass
                self.protocol.log("debug", "socket connection timed out! (ignore warning if client is only listening..)")
dataset/ETHPy150Open RobotWebTools/rosbridge_suite/rosbridge_server/src/rosbridge_server/tcp_handler.py/RosbridgeTcpSocket.handle/swapped operands of `>`