我有一个flask应用程序,可以从s3存储桶下载大文件。它实际上是分块地传输内容。该应用程序由uwsgi运行。我的uwsgi.ini配置为:
[uwsgi]
base = /app/api
chdir = %(base)
app = app
module = %(app)
plugins=python3, logfile
pythonpath = %(base)
enable-threads = true
disable-logging=True
wsgi-disable-file-wrapper = true
http-socket = 0.0.0.0:5000
workers = 10
socket = /var/www/flask/%n.sock
chmod-socket = 666
callable = app
req-logger = file:/var/tmp/uwsgi.log
我能够下载6.7MB的文件。但是当我下载70MB文件时,出现此错误:
有关如何执行此操作的任何建议?