Exemple #1
0
def run_cachebrowser():
    logger.info("Cachebrowser running...")
    logger.debug("Waiting for connections...")

    monkey.patch_all()

    rack.create_server('cli', port=5100, handler=cli.CLIHandler)
    rack.add_server('api', HttpServer(port=5200, handler=api.APIHandler))
    rack.create_server('proxy', port=8080, handler=proxy.ProxyConnection)
    rack.create_server('http', port=9005, handler=http.HttpConnection)

    common.context['server_rack'] = rack
    load_extensions()

    rack.start_all()

    gevent.wait()
Exemple #2
0
def run_cachebrowser():
    logger.info("Cachebrowser running...")
    logger.debug("Waiting for connections...")

    monkey.patch_all()

    rack.create_server('cli', port=5100, handler=cli.CLIHandler)
    rack.add_server('api', HttpServer(port=5200, handler=api.APIHandler))
    rack.create_server('proxy', port=8080, handler=proxy.ProxyConnection)
    rack.create_server('http', port=9005, handler=http.HttpConnection)

    common.context['server_rack'] = rack
    load_extensions()

    rack.start_all()

    gevent.wait()
Exemple #3
0
 def on_connect(self, sock, address):
     logger.debug("New CLI connection established with %s" %
                  str(self.address))
Exemple #4
0
 def on_connect(self, sock, address):
     logger.debug("New CLI connection established with %s" % str(self.address))