Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Streaming remote files/Printing out chunks

$
0
0
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?

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>