'Process input/output from a client for as long as possible'

def serveClient(self, client):

    itrans = self.inputTransportFactory.getTransport(client)
    otrans = self.outputTransportFactory.getTransport(client)
    iprot = self.inputProtocolFactory.getProtocol(itrans)
    oprot = self.outputProtocolFactory.getProtocol(otrans)
    try:
        while True:
            self.processor.process(iprot, oprot)
    except TTransport.TTransportException as tx:
        pass
    except Exception as x:
        logging.exception(x)
    itrans.close()
    otrans.close()
