Hi, my colleague found this interesting comment in nginx's source code:
if (p->upstream_done) {
ngx_http_file_cache_update(r, u->pipe->temp_file);
} else if (p->upstream_eof) {
* /* TODO: check length & update cache */*
ngx_http_file_cache_update(r, u->pipe->temp_file);
} else if (p->upstream_error) {
ngx_http_file_cache_free(r->cache, u->pipe->temp_file);
}
next time shall I ask a question, I'd better to do this first: *grep -ri
'TODO: ' **
On Wed, Jun 8, 2011 at 4:31 PM, Piotr Sikora <piotr.sikora@frickle.com>wrote:
> Hi,
>
>
> will nginx cache partial response when upstream prematutely close
>> connection?
>>
>
> Sadly, yes.
>
> Best regards,
> Piotr Sikora < piotr.sikora@frickle.com >
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
--
lei yang
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx