Mercurial > hg > nginx-vendor-0-8
annotate src/core/ngx_queue.h @ 358:9121a0a91f47 NGINX_0_6_23
nginx 0.6.23
*) Change: the "off" parameter in the "ssl_session_cache" directive;
now this is default parameter.
*) Change: the "open_file_cache_retest" directive was renamed to the
"open_file_cache_valid".
*) Feature: the "open_file_cache_min_uses" directive.
*) Feature: the ngx_http_gzip_static_module.
*) Feature: the "gzip_disable" directive.
*) Feature: the "memcached_pass" directive may be used inside the "if"
block.
*) Bugfix: a segmentation fault occurred in worker process, if the
"memcached_pass" and "if" directives were used in the same location.
*) Bugfix: if a "satisfy_any on" directive was used and not all access
and auth modules directives were set, then other given access and
auth directives were not tested;
*) Bugfix: regex parameters in a "valid_referers" directive were not
inherited from previous level.
*) Bugfix: a "post_action" directive did run if a request was completed
with 499 status code.
*) Bugfix: optimization of 16K buffer usage in a SSL connection.
Thanks to Ben Maurer.
*) Bugfix: the STARTTLS in SMTP mode did not work.
Thanks to Oleg Motienko.
*) Bugfix: in HTTPS mode requests might fail with the "bad write retry"
error; bug appeared in 0.5.13.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Thu, 27 Dec 2007 00:00:00 +0300 |
parents | 583decdb82a4 |
children | 820f6378fc00 |
rev | line source |
---|---|
348 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #include <ngx_config.h> | |
8 #include <ngx_core.h> | |
9 | |
10 | |
11 #ifndef _NGX_QUEUE_H_INCLUDED_ | |
12 #define _NGX_QUEUE_H_INCLUDED_ | |
13 | |
14 | |
15 typedef struct ngx_queue_s ngx_queue_t; | |
16 | |
17 struct ngx_queue_s { | |
18 ngx_queue_t *prev; | |
19 ngx_queue_t *next; | |
20 }; | |
21 | |
22 | |
354 | 23 #define ngx_queue_init(q) \ |
24 (q)->prev = q; \ | |
358 | 25 (q)->next = q |
354 | 26 |
27 | |
348 | 28 #define ngx_queue_empty(h) \ |
29 (h == (h)->prev) | |
30 | |
31 | |
32 #define ngx_queue_insert_head(h, x) \ | |
33 (x)->next = (h)->next; \ | |
34 (x)->next->prev = x; \ | |
35 (x)->prev = h; \ | |
36 (h)->next = x | |
37 | |
38 | |
39 #define ngx_queue_head(h) \ | |
40 (h)->next | |
41 | |
42 | |
43 #define ngx_queue_last(h) \ | |
44 (h)->prev | |
45 | |
46 | |
47 #if (NGX_DEBUG) | |
48 | |
49 #define ngx_queue_remove(x) \ | |
50 (x)->next->prev = (x)->prev; \ | |
51 (x)->prev->next = (x)->next; \ | |
52 (x)->prev = NULL; \ | |
53 (x)->next = NULL | |
54 | |
55 #else | |
56 | |
57 #define ngx_queue_remove(x) \ | |
58 (x)->next->prev = (x)->prev; \ | |
59 (x)->prev->next = (x)->next | |
60 | |
61 #endif | |
62 | |
63 | |
64 #define ngx_queue_data(q, type, link) \ | |
65 (type *) ((u_char *) q - offsetof(type, link)) | |
66 | |
67 | |
68 #endif /* _NGX_QUEUE_H_INCLUDED_ */ |