Internals: how do I send large file to the client?
Bhushan Sonawane
coolbhushans at gmail.com
Wed Aug 14 12:09:30 UTC 2013
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 at 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 at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20130814/d8b313eb/attachment.html>
More information about the nginx
mailing list