mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
do not close connection if cache file is too small: replace it with valid one
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user