Well since I got no response I suppose that I might have not expressed myself properly.<div><div><br></div><div>The problem is that I don't know howto tell nginx  that there is no information and to go on with the next  request in the output buffer chain. I looked at other modules and google around but couldn't find any information that I could use.</div>
<div><br></div><div>Any help would be appreciated.</div><div><br></div><div>AM  <br><br><div class="gmail_quote">On 8 August 2011 16:38, Adelino Monteiro <span dir="ltr"><<a href="mailto:adelino@ainou.net">adelino@ainou.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><br></div><br><div>Hello,</div><div><br></div><div>I've build an output filter based on the guide from Evan Miller and some other modules.</div>
<div><br></div><div>Everything has been working fine but lately I found that my next_body_filter call is returning NGX_AGAIN.</div>

<div>This happens when I only have a very small  chain that won't get processed (I put in the ctx to process the next time), so the call to    ngx_http_next_body_filter(r, in)  basically don't has any output to process.</div>


<div>Strangely I see that nginx put my request into a timer but what happens is that after that time the request is broken and the rest of the file don't get processed.</div><div><br></div><div>Have a look at the output please:    </div>


<div><br></div><div><div>2011/08/08 15:45:41 [debug] 11461#0: *1 http postpone filter "/u2.mp4?" 0000000001A02790</div><div>2011/08/08 15:45:41 [debug] 11461#0: *1 write new buf t:0 f:0 0000000000000000, pos 0000000001A0A56C, size: 5 file: 0, size: 0</div>



<div>2011/08/08 15:45:41 [debug] 11461#0: *1 write new buf t:1 f:0 0000000001A6ACB0, pos 0000000001A6ACB0, size: -5 file: 0, size: 0</div><div>2011/08/08 15:45:41 [debug] 11461#0: *1 http write filter: l:0 f:1 s:0</div><div>



2011/08/08 15:45:41 [debug] 11461#0: *1 Save left_bytes [13] in context </div><div>2011/08/08 15:45:41 [debug] 11461#0: *1 http copy filter: <font color="#cc0000">-2 </font>"/u2.mp4?"</div>
<div>2011/08/08 15:45:41 [debug] 11461#0: *1 http finalize request: <font color="#cc0000">-2</font>, "/u2.mp4?" a:1, c:1</div>
<div>2011/08/08 15:45:41 [debug] 11461#0: *1 <font color="#cc0000">event timer add: 3: 60000:1312814801328</font></div><div><font color="#cc0000">2011/08/08 15:46:41 [debug] 11461#0: *1 event timer del: 3: 1312814801328</font></div>


<div>2011/08/08 15:46:41 [debug] 11461#0: *1 http run request: "/u2.mp4?"</div>
<div>2011/08/08 15:46:41 [debug] 11461#0: *1 http writer handler: "/u2.mp4?"</div><div>2011/08/08 15:46:41 [info] 11461#0: *1 client timed out (110: Connection timed out) while sending mp4 to client, client: 192.168.56.1, server: localhost, request: "GET /u2.mp4 HTTP/1.1", host: "<a href="http://192.168.56.101:8080" target="_blank">192.168.56.101:8080</a>"</div>



<div>2011/08/08 15:46:41 [debug] 11461#0: *1 http finalize request: 408, "/u2.mp4?" a:1, c:1</div><div>2011/08/08 15:46:41 [debug] 11461#0: *1 http terminate request count:1</div><div>2011/08/08 15:46:41 [debug] 11461#0: *1 http terminate cleanup count:1 blk:0</div>



<div>2011/08/08 15:46:41 [debug] 11461#0: *1 http posted request: "/u2.mp4?"</div><div>2011/08/08 15:46:41 [debug] 11461#0: *1 http terminate handler count:1</div><div>2011/08/08 15:46:41 [debug] 11461#0: *1 http request count:1 blk:0</div>



<div>2011/08/08 15:46:41 [debug] 11461#0: *1 http close request</div><div>2011/08/08 15:46:41 [debug] 11461#0: *1 http log handler</div><div>2011/08/08 15:46:41 [debug] 11461#0: *1 run cleanup: 0000000001A0A290</div><div>



2011/08/08 15:46:41 [debug] 11461#0: *1 file cleanup: fd:12</div><div>2011/08/08 15:46:41 [debug] 11461#0: *1 free: 0000000000000000</div><div>2011/08/08 15:46:41 [debug] 11461#0: *1 free: 0000000001A6ACB0</div><div>2011/08/08 15:46:41 [debug] 11461#0: *1 free: 0000000001A546C0</div>



<div>2011/08/08 15:46:41 [debug] 11461#0: *1 free: 0000000001A098C0, unused: 8</div><div>2011/08/08 15:46:41 [debug] 11461#0: *1 free: 0000000001A02680, unused: 3527</div><div>2011/08/08 15:46:41 [debug] 11461#0: *1 close http connection: 3</div>



<div>2011/08/08 15:46:41 [debug] 11461#0: *1 reusable connection: 0</div><div>2011/08/08 15:46:41 [debug] 11461#0: *1 free: 0000000001A094B0</div><div>2011/08/08 15:46:41 [debug] 11461#0: *1 free: 0000000001A08EB0</div><div>



2011/08/08 15:46:41 [debug] 11461#0: *1 free: 00000000019FDBE0, unused: 8</div><div>2011/08/08 15:46:41 [debug] 11461#0: *1 free: 0000000001A093A0, unused: 128</div></div><div><br></div><div>My question is what magic do I need to do in order to tell Nginx that I don't have data to processe this time and to send me other content. </div>

<div><br></div>
<div>I googled around and found some information from 2007 that told me to use timer but I can't find a example with that implementation and don't know if that is any longer supported.</div><div><br></div><div>Any help is appreciated.</div>

<div><br></div><font color="#888888"><div>AM</div>
</font></blockquote></div><br></div></div>