Welcome! Log In Create A New Profile


asynchronous file io in a module

April 16, 2010 06:30PM
I am trying to modify the flv streaming module to support h.246 and aac flv files. All that the module has to do is find the aac and h246 sequence headers in the beginning of the file, and copy these into the output buffer before the body of the file. This is not particularly hard, and I have it working with blocking io. What is the proper way to do this within nginx using asynchronous io? Reading Emiller's Guide To Nginx Module Development (http://www.evanmiller.org/nginx-modules-guide.html), I see that I could do an upstream proxy request to self, but that seems unnecessarily convoluted. Is there a simpler, high performance way to access the actual file data without blocking the process?


Subject Author Posted

asynchronous file io in a module

wombat57 April 16, 2010 06:30PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 58
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready