I'm trying to stream a file from a remote server (outputting smaller chunks) to the client. But it seems as though the buffers are messing with something causing the download speed to be much higher than the download speed.
When I ran the script on an Apache server it was working perfectly with a 1:1 ratio (e.g. downloading at 1 MB/s from the remote server and at the same time uploading at 1 MB/s to the client).
The script downloads chunks using cURL and prints them out to the user.
Remote server -> Nginx server -> Client
How can I have Nginx stream the remote file in a 1:1 ratio like Apache?
When I ran the script on an Apache server it was working perfectly with a 1:1 ratio (e.g. downloading at 1 MB/s from the remote server and at the same time uploading at 1 MB/s to the client).
The script downloads chunks using cURL and prints them out to the user.
Remote server -> Nginx server -> Client
How can I have Nginx stream the remote file in a 1:1 ratio like Apache?