aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_ssl_module.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2011-09-27 11:17:11 +0000
committerMaxim Dounin <mdounin@mdounin.ru>2011-09-27 11:17:11 +0000
commitb16918ed08b9f1155220a980ee6e133d31f2b61a (patch)
tree68922be674b3471e63e960bd7ff4a9995ce9f61d /src/http/modules/ngx_http_ssl_module.c
parent84c58a30e63fca6a509127fe046bd00a4b290135 (diff)
downloadnginx-b16918ed08b9f1155220a980ee6e133d31f2b61a.tar.gz
nginx-b16918ed08b9f1155220a980ee6e133d31f2b61a.zip
Cache: fix for sending of stale responses.
For normal cached responses ngx_http_cache_send() sends last buffer and then request finalized via ngx_http_finalize_request() call, i.e. everything is ok. But for stale responses (i.e. when upstream died, but we have something in cache) the same ngx_http_cache_send() sends last buffer, but then in ngx_http_upstream_finalize_request() another last buffer is send. This causes duplicate final chunk to appear if chunked encoding is used (and resulting problems with keepalive connections and so on). Fix this by not sending in ngx_http_upstream_finalize_request() another last buffer if we know response was from cache.
Diffstat (limited to 'src/http/modules/ngx_http_ssl_module.c')
0 files changed, 0 insertions, 0 deletions