Mercurial > hg > nginx-mail
annotate src/core/ngx_list.h @ 92:45945fa8b8ba NGINX_0_2_0
nginx 0.2.0
*) The pid-file names used during online upgrade was changed and now is
not required a manual rename operation. The old master process adds
the ".oldbin" suffix to its pid-file and executes a new binary file.
The new master process creates usual pid-file without the ".newbin"
suffix. If the master process exits, then old master process renames
back its pid-file with the ".oldbin" suffix to the pid-file without
suffix.
*) Change: the "worker_connections" directive, new name of the
"connections" directive; now the directive specifies maximum number
of connections, but not maximum socket descriptor number.
*) Feature: SSL supports the session cache inside one worker process.
*) Feature: the "satisfy_any" directive.
*) Change: the ngx_http_access_module and ngx_http_auth_basic_module do
not run for subrequests.
*) Feature: the "worker_rlimit_nofile" and "worker_rlimit_sigpending"
directives.
*) Bugfix: if all backend using in load-balancing failed after one
error, then nginx did not try do connect to them during 60 seconds.
*) Bugfix: in IMAP/POP3 command argument parsing.
Thanks to Rob Mueller.
*) Bugfix: errors while using SSL in IMAP/POP3 proxy.
*) Bugfix: errors while using SSI and gzipping.
*) Bugfix: the "Expires" and "Cache-Control" header lines were omitted
from the 304 responses.
Thanks to Alexandr Kukushkin.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Fri, 23 Sep 2005 00:00:00 +0400 |
parents | 72eb30262aac |
children | b52bd034c577 |
rev | line source |
---|---|
0 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #ifndef _NGX_LIST_H_INCLUDED_ | |
8 #define _NGX_LIST_H_INCLUDED_ | |
9 | |
10 | |
11 #include <ngx_config.h> | |
12 #include <ngx_core.h> | |
13 | |
14 | |
15 typedef struct ngx_list_part_s ngx_list_part_t; | |
16 | |
17 struct ngx_list_part_s { | |
18 void *elts; | |
19 ngx_uint_t nelts; | |
20 ngx_list_part_t *next; | |
21 }; | |
22 | |
23 | |
24 typedef struct { | |
25 ngx_list_part_t *last; | |
26 ngx_list_part_t part; | |
27 size_t size; | |
28 ngx_uint_t nalloc; | |
29 ngx_pool_t *pool; | |
30 } ngx_list_t; | |
31 | |
32 | |
50 | 33 static ngx_inline |
34 ngx_int_t ngx_list_init(ngx_list_t *list, ngx_pool_t *pool, ngx_uint_t n, | |
35 size_t size) | |
0 | 36 { |
50 | 37 list->part.elts = ngx_palloc(pool, n * size); |
38 if (list->part.elts == NULL) { | |
0 | 39 return NGX_ERROR; |
40 } | |
41 | |
42 list->part.nelts = 0; | |
43 list->part.next = NULL; | |
44 list->last = &list->part; | |
45 list->size = size; | |
46 list->nalloc = n; | |
47 list->pool = pool; | |
48 | |
49 return NGX_OK; | |
50 } | |
51 | |
52 | |
53 /* | |
54 * | |
55 * the iteration through the list: | |
56 * | |
57 * part = &list.part; | |
58 * data = part->elts; | |
59 * | |
60 * for (i = 0 ;; i++) { | |
61 * | |
62 * if (i >= part->nelts) { | |
63 * if (part->next == NULL) { | |
64 * break; | |
65 * } | |
66 * | |
67 * part = part->next; | |
68 * data = part->elts; | |
69 * i = 0; | |
70 * } | |
71 * | |
72 * ... data[i] ... | |
73 * | |
74 * } | |
75 */ | |
76 | |
77 | |
78 void *ngx_list_push(ngx_list_t *list); | |
79 | |
80 | |
81 #endif /* _NGX_LIST_H_INCLUDED_ */ |