diff src/http/ngx_http_upstream.c @ 7456:608810849b6d

Upstream: fixed logging of required buffer size (ticket #1722).
author Chanhun Jeong <chanhun.jeong@navercorp.com>
date Mon, 11 Feb 2019 13:36:53 +0900
parents e573d74299a0
children c19ca381b2e6
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -850,7 +850,7 @@ ngx_http_upstream_cache(ngx_http_request
 
         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",