non blocking wsgi.input in gevent

This commit is contained in:
Roberto De Ioris
2012-10-22 15:58:36 +02:00
parent 49140c3387
commit 7017712c6d
4 changed files with 193 additions and 52 deletions
+2
View File
@@ -239,6 +239,8 @@ pep405:
up.wsgi_writeout = PyCFunction_New(uwsgi_write_method, NULL);
up.hook_write_string = python_simple_hook_write_string;
up.hook_wsgi_input_read = uwsgi_python_hook_simple_input_read;
up.hook_wsgi_input_readline = uwsgi_python_hook_simple_input_readline;
up.main_thread = PyThreadState_Get();