Mercurial > hg > ngx_http_upstream_keepalive
annotate .hgtags @ 11:15530a464dba
Keepalive: don't cache invalid connections.
1. Remember failed status, since peer.free() may be called more than once.
It's called twice if peer fails - once from ngx_http_upstream_next() with
NGX_PEER_FAILED set, and then from ngx_http_upstream_finalize_request()
without.
2. We shouldn't cache connection unless we aren't expecting anything from
upstream. For memcached this means either 404 response or 200 response with
all body read (body may not be read e.g. when serving HEAD request).
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 13 Nov 2008 19:36:23 +0300 |
parents | cf65cec7e14b |
children | 142c6443d851 |
rev | line source |
---|---|
9
cf65cec7e14b
Added tag 0.1 for changeset 565939797f5c
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
1 565939797f5c62a5eb59b3cbfd7191dbc7165f0b 0.1 |