Problem
Downloading a large file (400MB+) with "transfer-encoding: chunked" fails after about 3 seconds. Downloading smaller files works even though possible taking longer than 3 seconds. The connection is just aborted mid-transfer which results in incomplete reads due to expected content missing. A download of the same file or a file of similar size can work a few hours consistently and then fail a few hours or days consistently.
Setup
- Ingress Nginx in proxy mode inside a kubernetes cluster.
- Running on AWS
Notes
The download always works when bypassing nginx by port forwarding to the actual server sending the response.
The ingress/nginx pods are not failing and restarting.
No error to be found in the log.
Configuration options like proxy-buffering
seem not to make a difference. It sometimes works, sometimes not.
Any idea what could cause this behavior? Happy to provide more details. Thanks.
Related
Those two issues look very similar: