mirror of
https://github.com/nginx/nginx.git
synced 2025-01-23 23:03:18 -06:00
do not close connection if cache file is too small: replace it with valid one
This commit is contained in:
parent
c2cafadfa5
commit
d8ce166e2e
@ -376,7 +376,7 @@ ngx_http_file_cache_read(ngx_http_request_t *r, ngx_http_cache_t *c)
|
||||
if ((size_t) n < c->header_start) {
|
||||
ngx_log_error(NGX_LOG_CRIT, r->connection->log, 0,
|
||||
"cache file \"%s\" is too small", c->file.name.data);
|
||||
return NGX_ERROR;
|
||||
return NGX_DECLINED;
|
||||
}
|
||||
|
||||
h = (ngx_http_file_cache_header_t *) c->buf->pos;
|
||||
|
Loading…
Reference in New Issue
Block a user