Open fr0der1c opened 5 years ago
I found the problem. I use a modular build and I thought the gevent plugin is already included in the python plugin. In fact gevent plugin is a separated plugin. Using pip install uwsgi
solved the problem.
However, requests are still occasionally not being responded. And I don't know why.
I've been using uwsgi as web server of my Flask application. Recently I want to use gevent to optimize concurrency. But unluckily I found uWSGI is still blocking when using gevent.
Here are my configurations: server.py:
uwsgi.ini:
To test if the server is blocking, I wrote a view function:
When runing server.py directly, which uses gevent.pywsgi.WSGIServer, it just works fine. But If I'm using uWSGI to serve, after accessing
/sleep
, I cannot visit any other pages.