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.
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: 258
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