Welcome! Log In Create A New Profile

Advanced

Re: Internals: how do I send large file to the client?

August 14, 2013 08:10AM
have u know the split command in linux . you can use that to split file
then send it after you can use join command to join files


On Tue, Aug 13, 2013 at 1:00 AM, ruslan_osmanov <nginx-forum@nginx.us>wrote:

> Hi,
>
> I'm writing a filter module which implies a backend to be sending XML with
> information about files that have to be concatenated and sent to the
> client.
>
> One way to send a file is to `ngx_read_file` into a buffer allocated in the
> heap(pool) and push it onto the chain. However, I obviously can't allocate
> ~10G
> in the heap. I have to send it chunk-by-chunk. How do I perform such kind
> of
> I/O?
>
> Regards.
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,241796,241796#msg-241796
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Internals: how do I send large file to the client?

ruslan_osmanov August 12, 2013 03:30PM

Re: Internals: how do I send large file to the client?

coolbhushans@gmail.com August 14, 2013 08:10AM

Re: Internals: how do I send large file to the client?

ruslan_osmanov August 14, 2013 08:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 241
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