Thank you for your answer. I will try how it will work with X-Accel-Buffering: no in headers. It is strange. From backend it seems like client disconnects. Calling php connection_aborted returns true. I am downloading file around 1.5GB with speed around 250KB/s. I have downloaded 600MB and I can see in my log from php, that I have disconnected. Also I know that file from 3rd party server is fullyby portoist - Nginx Mailing List - English
Hello everybody, We are using nginx with php-fpm. Our application works as download aggregator. We download files from 3rd party servers and send it to client while it's still being downloaded. It means that we can't use X-Accel-Redirect, since file isn't fully downloaded and X-Accel-Redirect sets Content-Length to actual file size. We set required headers in php and in cycle read chunks of file,by portoist - Nginx Mailing List - English