On Mon, Jun 7, 2010 at 10:41 PM, Srebrenko Šehić <ssehic@gmail.com> wrote:
>> b->pos = b->last;
>
> I guess that should be done after the call to
> ngx_http_next_body_filter(r, in). I tried that, but it did not make
> any difference. It still "hangs" for payloads larger than 32KB.
I managed to figure it out myself. I set the b->pos = b->end during my
"traverse the chain and copy all buffers into one" for each buffer
that I copy. I just assumed that "old buffers" will be thrown away by
nginx as soon as I changed the input chain to the new buffer leaving
the old buffer dangling.
Anyways, thanks for the pointer Maxim. Highly appreciated.
Best regards,
Srebrenko
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel