From: Chanhun Jeong Date: Mon, 11 Feb 2019 04:36:53 +0000 (+0900) Subject: Upstream: fixed logging of required buffer size (ticket #1722). X-Git-Tag: release-1.15.9~12 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=c5c034f66d55b6836c5c8fa19ab062dbaff009cd;p=nginx.git Upstream: fixed logging of required buffer size (ticket #1722). --- diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 907105571..a7391d09a 100644 --- 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_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",