]> git.kaiwu.me - nginx.git/commitdiff
Upstream: fixed logging of required buffer size (ticket #1722).
authorChanhun Jeong <chanhun.jeong@navercorp.com>
Mon, 11 Feb 2019 04:36:53 +0000 (13:36 +0900)
committerChanhun Jeong <chanhun.jeong@navercorp.com>
Mon, 11 Feb 2019 04:36:53 +0000 (13:36 +0900)
src/http/ngx_http_upstream.c

index 9071055714008c6178e68be20bfa0d49480921f8..a7391d09a86cb5e1014811bfbcf0dab313b51b92 100644 (file)
@@ -850,7 +850,7 @@ 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 + 256 >= u->conf->buffer_size) {
+        if (r->cache->header_start + 256 > u->conf->buffer_size) {
             ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
                           "%V_buffer_size %uz is not enough for cache key, "
                           "it should be increased to at least %uz",