Hi,
I'm using flask+nginx and need to serve some large files from flask via
nginx.
nginx looks like this:
location / {
uwsgi_pass unix:/tmp/uwsgi.sock;
uwsgi_buffering off;
uwsgi_read_timeout 120s;
uwsgi_send_timeout 120s;
include uwsgi_params;
}
in my flask app I'm sending the file using:
return send_file(f, mimetype=f.file_type, as_attachment=True,
attachment_filename=f.filename)
In the logs I see:
uwsgi_response_sendfile_do() TIMEOUT !!!
IOError: write error
I have previously tried setting very large uwsgi buffers but this proved
unreliable.
Serving the content from nginx is not an option, and it must come via flask
- what else could I tweak to get this working. At the moment I have 10-20%
failure rate, this is transferring files from cloud to cloud provider so
the link is fast and reliable.
Many Thanks
John
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi