code: def _client_connection(self, conn, addr):
          '''
          Handle the connecition with one client.
          '''
          log.debug('Established connection with %s:%d', addr[0], addr[1])
          conn.settimeout(self.socket_timeout)
          try:
              while self.__up:
                  msg = conn.recv(self.buffer_size)
                  if not msg:
                      # log.debug('Received empty message from %s', addr)
                      # disabled ^ as it was too noisy
                      continue
                  log.debug('[%s] Received %s from %s. Adding in the queue', time.time(), msg, addr)
                  self.buffer.put((msg, '{}:{}'.format(addr[0], addr[1])))
          except socket.timeout:
              if not self.__up:
                  return
              log.debug('Connection %s:%d timed out', addr[1], addr[0])
              raise ListenerException('Connection %s:%d timed out' % addr)
          finally:
              log.debug('Closing connection with %s', addr)
              conn.close(f _client_connection(self, conn, addr):
          '''
          Handle the connecition with one client.
          '''
          log.debug('Established connection with %s:%d', addr[0], addr[1])
          conn.settimeout(self.socket_timeout)
          try:
              while self.__up:
                  msg = conn.recv(self.buffer_size)
                  if not msg:
                      # log.debug('Received empty message from %s', addr)
                      # disabled ^ as it was too noisy
                      continue
                  log.debug('[%s] Received %s from %s. Adding in the queue', time.time(), msg, addr)
                  self.buffer.put((msg, '{}:{}'.format(addr[0], addr[1])))
          except socket.timeout:
              if not self.__up:
                  return
              log.debug('Connection %s:%d timed out', addr[1], addr[0])
              raise ListenerException('Connection %s:%d timed out' % addr)
          finally:
              log.debug('Closing connection with %s', addr)
              conn.close()
docs: Handle the connecition with one client.