开发者

Running eventlet server in bottle framework

开发者 https://www.devze.com 2023-02-27 05:34 出处:网络
i see something like this in bottle.py version 0.9. Doe开发者_如何学编程s that means. i can run bottle server as a eventlet server.

i see something like this in bottle.py version 0.9. Doe开发者_如何学编程s that means. i can run bottle server as a eventlet server.

class EventletServer(ServerAdapter):
""" Untested """
def run(self, handler):
    from eventlet import wsgi, listen
    wsgi.server(listen((self.host, self.port)), handler

)


Atlast figured out. how to run bottle server as eventlet in bottle framework.Just should pass the argument server='' inside run. list of supported servers Server adapters in bottle

run(server='eventlet',host='localhost', port=8080, reloader=True)
0

精彩评论

暂无评论...
验证码 换一张
取 消