aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_memcached_module.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2013-07-25 14:56:59 +0400
committerMaxim Dounin <mdounin@mdounin.ru>2013-07-25 14:56:59 +0400
commit187f3948ed4de1e8886fd50cbe937816c25dede6 (patch)
tree95dd6555aabcb14a057ff1c150124725b64a64ed /src/http/modules/ngx_http_memcached_module.c
parenteafe44ff7995ab32c7935495ce0905530a104ec9 (diff)
downloadnginx-187f3948ed4de1e8886fd50cbe937816c25dede6.tar.gz
nginx-187f3948ed4de1e8886fd50cbe937816c25dede6.zip
Upstream: fixed store/cache of unfinished responses.
In case of upstream eof, only responses with u->pipe->length == -1 are now cached/stored. This ensures that unfinished chunked responses are not cached. Note well - previously used checks for u->headers_in.content_length_n are preserved. This provides an additional level of protection if protol data disagree with Content-Length header provided (e.g., a FastCGI response is sent with wrong Content-Length, or an incomple SCGI or uwsgi response), as well as protects from storing of responses to HEAD requests. This should be reconsidered if we'll consider caching of responses to HEAD requests.
Diffstat (limited to 'src/http/modules/ngx_http_memcached_module.c')
0 files changed, 0 insertions, 0 deletions