On Sun, Sep 16, 2007 at 10:51:10PM +0200, Manlio Perillo wrote:
Igor Sysoev ha scritto:
If you have got all your data ready you may send them at once in one chain.
But if you are getting then gradually, then after NGX_AGAIN you should
set event handlers and timer and return control to nginx.
As suggested, I have accumulate all the data in a buffer chain.
The data in my test is about 3.7 MB (an mp3) and, finally, the whole
content is sent to the client.
However ngx_http_output_filter still returns NGX_AGAIN, and I have noted
that Firefox when loading the data does not see the end of the stream.