Skip to content

Commit

Permalink
Upstream: fixed logging of required buffer size (ticket #1722).
Browse files Browse the repository at this point in the history
  • Loading branch information
keyolk committed Feb 11, 2019
1 parent fc66ccc commit c5c034f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http/ngx_http_upstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit c5c034f

Please sign in to comment.