Welcome! Log In Create A New Profile

Advanced

proxy_cache partial response?

杨镭
June 07, 2011 08:42PM
will nginx cache partial response when upstream prematutely close
connection?

In our production environment, we found the following scenario requires one
to manually clear proxy cache:

1. nginx asks upstrean for some large file, e.g., 5000KB

2. upstream send response, it flushes response header which (at least)
contains content-length

3. Network is completely broken when 200KB was received by nginx. In about
the same time, upstream closed connection by sending a FIN

4. nginx cache the partial response and use it to serve subsequent requests
until expiration.

5. Browser request this large file then indefinitely hangs because
content-length indicates there were more to come but actually nginx has
nothing to send.

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: 169
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