Latest update - 7457
This commit is contained in:
+1
-2
@@ -635,10 +635,9 @@ ngx_slab_free_locked(ngx_slab_pool_t *pool, void *p)
|
|||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
n = ((u_char *) p - pool->start) >> ngx_pagesize_shift;
|
|
||||||
size = slab & ~NGX_SLAB_PAGE_START;
|
size = slab & ~NGX_SLAB_PAGE_START;
|
||||||
|
|
||||||
ngx_slab_free_pages(pool, &pool->pages[n], size);
|
ngx_slab_free_pages(pool, page, size);
|
||||||
|
|
||||||
ngx_slab_junk(p, size << ngx_pagesize_shift);
|
ngx_slab_junk(p, size << ngx_pagesize_shift);
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
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,
|
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
|
||||||
"%V_buffer_size %uz is not enough for cache key, "
|
"%V_buffer_size %uz is not enough for cache key, "
|
||||||
"it should be increased to at least %uz",
|
"it should be increased to at least %uz",
|
||||||
|
|||||||
Reference in New Issue
Block a user