Welcome! Log In Create A New Profile

Advanced

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

August 12, 2013 03:30PM
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.
SubjectAuthorPosted

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

ruslan_osmanovAugust 12, 2013 03:30PM

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

coolbhushans@gmail.comAugust 14, 2013 08:10AM

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

ruslan_osmanovAugust 14, 2013 08:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 82
Record Number of Users: 3 on November 23, 2014
Record Number of Guests: 377 on November 23, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready