API question: large data processing handler

Julien Zefi jzefip at gmail.com
Thu Jun 20 05:42:57 UTC 2013

i tried to follow the suggestion of using a timer and a new handler for the
write callback without luck, indeed there is something wrong on my end.

if you have some minute to review, I wrote a simple test case, my goal is
to make ngx_http_test_stream_handler(..) to be called every 10ms and send
some data to the browser until this same function decide to stop working...

thanks for your help

On Tue, Jun 4, 2013 at 10:29 AM, Valentin V. Bartenev <vbart at nginx.com>wrote:

> On Tuesday 04 June 2013 20:08:31 Maxim Dounin wrote:
> [...]
> > (You may also try to emulate filing socket's send buffer by
> > setting c->write->ready to 0 before calling the
> > ngx_handle_write_event(), but not sure if it's safe/will actually
> > work will all event methods.)
> It's certainly not safe. In particular it will break spdy.
>   wbr, Valentin V. Bartenev
> _______________________________________________
> nginx-devel mailing list
> nginx-devel at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20130619/6734dd99/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_case.tar.gz
Type: application/x-gzip
Size: 1122 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20130619/6734dd99/attachment.bin>

More information about the nginx-devel mailing list