Welcome! Log In Create A New Profile

Advanced

Using sendfile in module

Kent Karlsson
May 05, 2010 09:52PM
Hey,

I'm considering porting a slow cgi to a module for nginx that provides a custom url scheme to access parts of big files and would like to use sendfile to avoid copying all the data to userspace and back again. I looked at X-Accel-Redirect, but it seems to require that I send the entire file, which won't work for me.

I need to understand if it is possible first, so if someone can tell me if it is and maybe give me some code or links to read, that would be much appreciated.

-- kent

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Using sendfile in module

Kent Karlsson 2359 May 05, 2010 09:52PM

Re: Using sendfile in module

Maxim Dounin 1361 May 06, 2010 05:32AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

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