def web_client_worker(data_q, config):
wsapp = WService(queue=data_q, config=config)
wrouter = WRouter(wsapp)
wrouter.route_client(config.client())
# Start SSL-wrapped bottle
sslsrv = SSLWSGIRefServer(host=config.client()['web']['host'],
port=config.client()['web']['port'])
logging.info('Starting Webservice client (daemon) ')
bottle.run(server=sslsrv, debug=config.client()['web']['debug'],
quiet=config.client()['web']['quiet'])
return
评论列表
文章目录