diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2011-07-29 15:33:03 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2011-07-29 15:33:03 +0000 |
| commit | c2f852c2603558b744928871a40f14fb950742ed (patch) | |
| tree | 37864a655186b619dd3f07442e7255ae6a56e3d6 /src/http/ngx_http_upstream.c | |
| parent | 26b94d71738b3cc48ddced35c984941d2f5bf68e (diff) | |
| download | nginx-c2f852c2603558b744928871a40f14fb950742ed.tar.gz nginx-c2f852c2603558b744928871a40f14fb950742ed.tar.bz2 | |
update r3945 with more descriptive error message
Diffstat (limited to '')
| -rw-r--r-- | src/http/ngx_http_upstream.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 42b351c4d..29432dc14 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -661,10 +661,12 @@ ngx_http_upstream_cache(ngx_http_request_t *r, ngx_http_upstream_t *u) ngx_http_file_cache_create_key(r); - if (r->cache->header_start >= u->conf->buffer_size) { + if (r->cache->header_start + 256 >= u->conf->buffer_size) { ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, - "cache key too large, increase upstream buffer size %uz", - u->conf->buffer_size); + "%V_buffer_size %uz is not enough for cache key, " + "it should increased at least to %uz", + &u->conf->module, u->conf->buffer_size, + ngx_align(r->cache->header_start + 256, 1024)); r->cache = NULL; return NGX_DECLINED; |
