def run(self):
        try:
            self.ready = True
            while True:
                try:
                    conn = self.server.requests.get()
                    if conn is _SHUTDOWNREQUEST:
                        return

                    self.conn = conn
                    try:
                        conn.communicate()
                    finally:
                        conn.close()
                        self.conn = None
                except Exception, ex:
                    LOG.exception('WSGI (%s) error: %s' % (self, ex))
        except (__HOLE__, SystemExit), exc:
            self.server.interrupt = exc
            return
dataset/ETHPy150Open cloudera/hue/desktop/core/src/desktop/lib/wsgiserver.py/WorkerThread.run