Hello.

I have a Django application that does uploads and downloads of files. Since 
these are slow requests, I don't want a thread or a process per request, so I 
was thinking of using greenlets.

I have setup a uWSGI server with the Gevent loop, and I can do long polling 
requests just fine. I wait for a Gevent.Event and the thread switches to 
another greenlet which handles other requests meanwhile. The problem is that it 
seems read()s from the Django request object are not cooperative, as also 
response writes. Is there anyway to make these cooperative as well?

Thanks,
André Cruz
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to