how can i get a complete proxy content?
pf shineyear
shinepf at gmail.com
Mon Mar 16 17:04:16 MSK 2009
hi
i try to get a complete proxy content from a body filter like this:
struct ngx_chain_s *tmp_in = in;
while (tmp_in)
{
len = tmp_in->buf->last - tmp_in->buf->pos;
if (len <= 0)
{
if (tmp_in->next == NULL)break;
tmp_in = tmp_in->next;
continue;
}
// copy the buf to somewhere
if (tmp_in->next == NULL)
{
break;
}
tmp_in = tmp_in->next;
}
if (tmp_in->buf->last_buf)
{
//end of the buf
}
i set proxy_buffering off; but when i want to get a more little bigger file
about 200KB
i always got len <= 0 buf , so can u tell me why ? and how to resolve that?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090316/f91d7b16/attachment.html>
More information about the nginx
mailing list