Welcome! Log In Create A New Profile

Advanced

Streaming remote files/Printing out chunks

Posted by vg_v 
Streaming remote files/Printing out chunks
January 08, 2015 08:23AM
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?
Re: Streaming remote files/Printing out chunks
January 14, 2015 08:26AM
Does anyone have an idea on how to solve this?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 148
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready