title: Gunicorn and flask, static files are incomplete/truncated
body: <p>I'm having a problem with files being truncated in my combination of gunicorn and flask. For example, Firefox isn't downloading my entire jquery.js file. Using just flask I don't have the problem, and it appears that non-static results are all fine (as are small static files).</p>
  
  <p>My gunicorn config file looks like this:</p>
  
  <pre><code>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'
  </code></pre>
  
  <p>I setup the static path in Flask like this:</p>
  
  <pre><code>app = Flask(__name__, static_url_path='', static_folder='static')
  </code></pre>
  
  <p>Any ideas on why my files are being truncated?</p>
  
  <hr>
  
  <p>Testing with curl I get output like <code>transfer closed with 72835 bytes remaining to read</code>.</p>
  
  <p>If I disable 'eventlet' as the worker class it appears to work. However, I am using this class because it works on AWS behind a load-balanced, no other class appears to work there.</p>