NeuroDataDesign / orange-panda-f16s17

Automated EEG data analysis.
5 stars 5 forks source link

'Broken Pipe' issue #34

Closed rmarren1 closed 7 years ago

rmarren1 commented 7 years ago

when demo-ing, sometimes users would not recieve their data and the server will print IOError: [Errno 32] Broken pipe

probably because While lightweight and easy to use, Flask’s built-in server is not suitable for production as it doesn’t scale well and by default serves only one request at a time.

there are some wrappers which may fix this issue: http://flask.pocoo.org/docs/0.11/deploying/wsgi-standalone/

or may switch to django

rmarren1 commented 7 years ago

believe this was fixed by using a wsgi wrapper for the flask app. will reopen if stuff blows up again

rmarren1 commented 7 years ago

https://github.com/tiangolo/uwsgi-nginx-flask-docker we used this