I have a problem with files that are truncated in my combination with a gun and a flask. For example, Firefox does not load my entire jquery.js file. With just a flash, I have no problem, and it seems that non-static results are all fine (like small static files).
My gunicorn configuration file looks like this:
bind = '0.0.0.0:80' workers = 8 worker_class = 'eventlet' accesslog = '/var/log/search-interface.log' errorlog = '/var/log/search-interface.log' loglevel = 'info'
I set the static path in Flask as follows:
app = Flask(__name__, static_url_path='', static_folder='static')
Any ideas on why my files are truncated?
Testing with curl I get output as transfer closed with 72835 bytes remaining to read
.
If I disable "eventlet" as a working class, it works. However, I use this class because it runs on AWS for load balancing; no other class works there.
source share