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; }