Mercurial > hg > nginx-vendor-0-7
annotate src/core/ngx_queue.h @ 366:babd3d9efb62 NGINX_0_6_27
nginx 0.6.27
*) Change: now by default the rtsig method is not built on
Linux 2.6.18+.
*) Change: now a request method is not changed while redirection to a
named location via an "error_page" directive.
*) Feature: the "resolver" and "resolver_timeout" directives in SMTP
proxy.
*) Feature: the "post_action" directive supports named locations.
*) Bugfix: a segmentation fault occurred in worker process, if a
request was redirected from proxy, FastCGI, or memcached location to
static named locations.
*) Bugfix: browsers did not repeat SSL handshake if there is no valid
client certificate in first handshake.
Thanks to Alexander V. Inyukhin.
*) Bugfix: if response code 495-497 was redirected via an "error_page"
directive without code change, then nginx tried to allocate too many
memory.
*) Bugfix: memory leak in long-lived non buffered connections.
*) Bugfix: memory leak in resolver.
*) Bugfix: a segmentation fault occurred in worker process, if a
request was redirected from proxy, FastCGI, or memcached location to
static named locations.
*) Bugfix: in the $proxy_host and $proxy_port variables caching.
Thanks to Sergey Bochenkov.
*) Bugfix: a "proxy_pass" directive with variables used incorrectly the
same port as in another "proxy_pass" directive with the same host
name and without variables.
Thanks to Sergey Bochenkov.
*) Bugfix: an alert "sendmsg() failed (9: Bad file descriptor)" on some
64-bit platforms while reconfiguration.
*) Bugfix: a segmentation fault occurred in worker process, if empty
stub block was used second time in SSI.
*) Bugfix: in copying URI part contained escaped symbols into arguments.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 12 Mar 2008 00:00:00 +0300 |
parents | 9121a0a91f47 |
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_ */ |