I am trying to use the Flask application to balance the load of Amazon, and the flash streams continue to fail. It looks like the load balancer is sending the Connection: keep-alive header, and this causes the Flask process to never return (or take a lot of time). By firing ahead, all processes are destroyed and new ones begin. We also tried using uWSGI and simply exposing the Flask application directly (without a shell). All Flask process results simply do not respond.
I don't see anything in Flask docs that would make it ignore this header. I am at a loss as to what else I can do with Flask to fix this problem.
Twisting and direct connections to the machine work fine, only problems with the load balancer cause the problem. The load balancer does not seem to do anything wrong, and we successfully use it with several other packages.
python flask werkzeug gunicorn
edA-qa mort-ora-y
source share