Keywords : flask, gunicorn, apache2, send_file, werkzeug, requests, httpx, curl
curl: (18) transfer closed with 9895632 bytes remaining to read
urllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead(206700544 bytes read, 789007589 more expected)', IncompleteRead(206700544 bytes read, 789007589 more expected))
httpcore.RemoteProtocolError: peer closed connection without sending complete message body (received 290521088 bytes, expected 995708133)
gunicorn
has a default timeout of 30 seconds ...
so set up a bigger timeout --timeout 3600
:)