Hello! On Tue, Jun 04, 2013 at 12:23:33AM -0600, Julien Zefi wrote:
> On Sun, Jun 2, 2013 at 8:29 PM, Julien Zefi <jze...@gmail.com> wrote: > > > hi, > > > > i am writing a module that creates and returns large amount of data, > > obviously this is blocking the worker but my main function that create the > > data can be called many times to get the result by parts. > > > > I cannot find what's the right way to setup my handler, the intention is > > to invoke my function many times as required and send out the results by > > chunks, whats the best approach ? I would recommend to set r->write_event_handler, and use ngx_add_timer() with 1ms timeout to schedule another call to your handler. -- Maxim Dounin http://nginx.org/en/donation.html _______________________________________________ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-devel