<div dir="ltr">hi,<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 20, 2013 at 3:11 AM, Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru" target="_blank">mdounin@mdounin.ru</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello!<br>
<div class="im"><br>
On Wed, Jun 19, 2013 at 11:42:57PM -0600, Julien Zefi wrote:<br>
<br>
> i tried to follow the suggestion of using a timer and a new handler for the<br>
> write callback without luck, indeed there is something wrong on my end.<br>
><br>
> if you have some minute to review, I wrote a simple test case, my goal is<br>
> to make ngx_http_test_stream_handler(..) to be called every 10ms and send<br>
> some data to the browser until this same function decide to stop working...<br>
<br>
</div>Two obvious problems:<br>
<br>
1) You try to send data from stack, which is wrong as nginx might<br>
not be able to send data immediately.<br>
<br>
2) You set timer only once. Note timers are not periodic, and<br>
this will result in only call of the timer handler function.<br>
<br>
Haven't looked any further.<br></blockquote><div><br></div><div>thanks for your comments. Taking in count tha changes provided i still face this problem:<br><br>#0 0x00000000004065d6 in ngx_palloc (pool=0x0, size=16) at src/core/ngx_palloc.c:122<br>
#1 0x0000000000406a73 in ngx_pcalloc (pool=0x0, size=16) at src/core/ngx_palloc.c:305<br>#2 0x000000000046b76d in ngx_http_chunked_header_filter (r=0x6eebb0)<br> at src/http/modules/ngx_http_chunked_filter_module.c:82<br>
#3 0x000000000046bdc4 in ngx_http_range_header_filter (r=0x6eebb0)<br> at src/http/modules/ngx_http_range_filter_module.c:160<br><br></div><div>why my pool is always NULL ? do i am missing some initialization somewhere ?<br>
<br></div><div>thanks<br></div><div><br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="im"><br>
--<br>
Maxim Dounin<br>
<a href="http://nginx.org/en/donation.html" target="_blank">http://nginx.org/en/donation.html</a><br>
<br>
</div><div class=""><div class="h5">_______________________________________________<br>
nginx-devel mailing list<br>
<a href="mailto:nginx-devel@nginx.org">nginx-devel@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-devel" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx-devel</a><br>
</div></div></blockquote></div><br></div></div>