From 6152555f264ff6bb1b692b9ff91c1c90ebce7965 Mon Sep 17 00:00:00 2001 From: Unbit Date: Thu, 25 Apr 2013 14:43:40 +0200 Subject: [PATCH] another fix in python async mode --- plugins/python/wsgi_handlers.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/python/wsgi_handlers.c b/plugins/python/wsgi_handlers.c index c2b331c8..f2f0f11e 100644 --- a/plugins/python/wsgi_handlers.c +++ b/plugins/python/wsgi_handlers.c @@ -316,6 +316,9 @@ int uwsgi_request_wsgi(struct wsgi_request *wsgi_req) { int ret = manage_python_response(wsgi_req); if (ret == UWSGI_OK) goto end; UWSGI_RELEASE_GIL + if (ret == UWSGI_AGAIN) { + wsgi_req->async_force_again = 1; + } return ret; }