mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
add missing GeventWSGIWorker
This commit is contained in:
parent
d79b2dce3f
commit
78e3d08f96
@ -3,8 +3,7 @@
|
||||
# This file is part of gunicorn released under the MIT license.
|
||||
# See the NOTICE for more information.
|
||||
|
||||
from __future__ import with_statement
|
||||
from gunicorn.worker.ggevent import *
|
||||
from gunicorn.worker.ggevent import BASE_WSGI_ENV, GeventBaseWorker
|
||||
from gevent import wsgi
|
||||
|
||||
|
||||
@ -19,4 +18,9 @@ class WSGIHandler(wsgi.WSGIHandler):
|
||||
|
||||
|
||||
class WSGIServer(wsgi.WSGIServer):
|
||||
base_env = BASE_WSGI_ENV
|
||||
base_env = BASE_WSGI_ENV
|
||||
|
||||
class GeventWSGIWorker(GeventBaseWorker):
|
||||
"The Gevent StreamServer based workers."
|
||||
server_class = WSGIServer
|
||||
wsgi_handler = WSGIHandler
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user