最新的flask_socketio 使用的是python-socketio
如果在包中安裝了gevent或evenlet,在服務器上使用時,就會報錯
RuntimeError: You need to use the eventlet server. See the Deployment section of the documentation for more information
卸載gevent和evenlet有關的庫,卸載后就好了
經測試發現,如果是用uwsgi啟動,采用eventlet模式,process只能設置1個,且會造成線程堵塞,如果設置超過1個,也會報上面的錯誤
后來采用gunicorn解決