This commit is contained in:
Randall Leeds 2014-11-18 15:03:43 -08:00
parent 415956da23
commit 2aabf48317

View File

@ -25,6 +25,7 @@ import greenlet
from gunicorn.http.wsgi import sendfile as o_sendfile
from gunicorn.workers.async import AsyncWorker
def _eventlet_sendfile(fdout, fdin, offset, nbytes):
while True:
try:
@ -82,6 +83,7 @@ def patch_sendfile():
if o_sendfile is not None:
setattr(wsgi, "sendfile", _eventlet_sendfile)
class EventletWorker(AsyncWorker):
def patch(self):