Welcome! Log In Create A New Profile

Advanced

Re: proxy_cache partial response?

杨镭
June 10, 2011 09:34PM
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
Subject Author Posted

proxy_cache partial response?

杨镭 June 07, 2011 08:42PM

Re: proxy_cache partial response?

Piotr Sikora June 08, 2011 04:34AM

Re: proxy_cache partial response?

杨镭 June 10, 2011 09:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 115
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready