Mercurial > hg > nginx-vendor-current
annotate src/core/ngx_radix_tree.h @ 662:e5fa0a4a7d27 NGINX_1_1_15
nginx 1.1.15
*) Feature: the "disable_symlinks" directive.
*) Feature: the "proxy_cookie_domain" and "proxy_cookie_path"
directives.
*) Bugfix: nginx might log incorrect error "upstream prematurely closed
connection" instead of correct "upstream sent too big header" one.
Thanks to Feibo Li.
*) Bugfix: nginx could not be built with the ngx_http_perl_module if the
--with-openssl option was used.
*) Bugfix: internal redirects to named locations were not limited.
*) Bugfix: calling $r->flush() multiple times might cause errors in the
ngx_http_gzip_filter_module.
*) Bugfix: temporary files might be not removed if the "proxy_store"
directive were used with SSI includes.
*) Bugfix: in some cases non-cacheable variables (such as the $args
variable) returned old empty cached value.
*) Bugfix: a segmentation fault might occur in a worker process if too
many SSI subrequests were issued simultaneously; the bug had appeared
in 0.7.25.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 15 Feb 2012 00:00:00 +0400 |
parents | d0f7a625f27c |
children | 88a1b4797f2e |
rev | line source |
---|---|
34 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
660 | 4 * Copyright (C) Nginx, Inc. |
34 | 5 */ |
6 | |
7 | |
8 #ifndef _NGX_RADIX_TREE_H_INCLUDED_ | |
9 #define _NGX_RADIX_TREE_H_INCLUDED_ | |
10 | |
11 | |
12 #include <ngx_config.h> | |
13 #include <ngx_core.h> | |
14 | |
15 | |
16 #define NGX_RADIX_NO_VALUE (uintptr_t) -1 | |
17 | |
18 typedef struct ngx_radix_node_s ngx_radix_node_t; | |
19 | |
20 struct ngx_radix_node_s { | |
21 ngx_radix_node_t *right; | |
22 ngx_radix_node_t *left; | |
23 ngx_radix_node_t *parent; | |
24 uintptr_t value; | |
25 }; | |
26 | |
27 | |
28 typedef struct { | |
29 ngx_radix_node_t *root; | |
30 ngx_pool_t *pool; | |
31 ngx_radix_node_t *free; | |
32 char *start; | |
33 size_t size; | |
34 } ngx_radix_tree_t; | |
35 | |
36 | |
36 | 37 ngx_radix_tree_t *ngx_radix_tree_create(ngx_pool_t *pool, |
38 | 38 ngx_int_t preallocate); |
34 | 39 ngx_int_t ngx_radix32tree_insert(ngx_radix_tree_t *tree, |
36 | 40 uint32_t key, uint32_t mask, uintptr_t value); |
34 | 41 ngx_int_t ngx_radix32tree_delete(ngx_radix_tree_t *tree, |
36 | 42 uint32_t key, uint32_t mask); |
34 | 43 uintptr_t ngx_radix32tree_find(ngx_radix_tree_t *tree, uint32_t key); |
44 | |
45 | |
46 #endif /* _NGX_RADIX_TREE_H_INCLUDED_ */ |