Gunicorn and bulb, static files are incomplete / truncated

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.

+4
source share
1 answer

Your problem seems like problems with weapons # 615 and # 1155 .

The latter fixes the problem, and I can confirm the question that I had with gunicorn version 19.4.1 (by default today in Fedora 25 ) was resolved after the upgrade (to 19.7.1 , the last today in pypi ).

0
source

Source: https://habr.com/ru/post/1502354/


All Articles