comparison src/core/ngx_palloc.h @ 558:2da4537168f8 NGINX_0_8_31

nginx 0.8.31 *) Feature: now the "error_page" directive may redirect the 301 and 302 responses. *) Feature: the $geoip_city_continent_code, $geoip_latitude, and $geoip_longitude variables. Thanks to Arvind Sundararajan. *) Feature: now the ngx_http_image_filter_module deletes always EXIF and other application specific data if the data consume more than 5% of a JPEG file. *) Bugfix: nginx closed a connection if a cached response had an empty body. Thanks to Piotr Sikora. *) Bugfix: nginx might not be built by gcc 4.x if the -O2 or higher optimization option was used. Thanks to Maxim Dounin and Denis F. Latypoff. *) Bugfix: regular expressions in location were always tested in case-sensitive mode; the bug had appeared in 0.8.25. *) Bugfix: nginx cached a 304 response if there was the "If-None-Match" header line in a proxied request. Thanks to Tim Dettrick and David Kostal. *) Bugfix: nginx/Windows tried to delete a temporary file twice if the file should replace an already existent file.
author Igor Sysoev <http://sysoev.ru>
date Wed, 23 Dec 2009 00:00:00 +0300
parents 207ae3ff0444
children d0f7a625f27c
comparison
equal deleted inserted replaced
557:72104cd120ec 558:2da4537168f8
17 * On Windows NT it decreases a number of locked pages in a kernel. 17 * On Windows NT it decreases a number of locked pages in a kernel.
18 */ 18 */
19 #define NGX_MAX_ALLOC_FROM_POOL (ngx_pagesize - 1) 19 #define NGX_MAX_ALLOC_FROM_POOL (ngx_pagesize - 1)
20 20
21 #define NGX_DEFAULT_POOL_SIZE (16 * 1024) 21 #define NGX_DEFAULT_POOL_SIZE (16 * 1024)
22
23 #define NGX_POOL_ALIGNMENT 16
22 #define NGX_MIN_POOL_SIZE \ 24 #define NGX_MIN_POOL_SIZE \
23 (sizeof(ngx_pool_t) + 2 * sizeof(ngx_pool_large_t)) 25 ngx_align((sizeof(ngx_pool_t) + 2 * sizeof(ngx_pool_large_t)), \
26 NGX_POOL_ALIGNMENT)
24 27
25 28
26 typedef void (*ngx_pool_cleanup_pt)(void *data); 29 typedef void (*ngx_pool_cleanup_pt)(void *data);
27 30
28 typedef struct ngx_pool_cleanup_s ngx_pool_cleanup_t; 31 typedef struct ngx_pool_cleanup_s ngx_pool_cleanup_t;