Mercurial > hg > nginx-vendor-current
annotate src/core/ngx_list.h @ 28:7ca9bdc82b3f NGINX_0_1_14
nginx 0.1.14
*) Feature: the autoconfiguration directives:
--http-client-body-temp-path=PATH, --http-proxy-temp-path=PATH, and
--http-fastcgi-temp-path=PATH
*) Change: the directory name for the temporary files with the client
request body is specified by directive client_body_temp_path, by
default it is <prefix>/client_body_temp.
*) Feature: the ngx_http_fastcgi_module and the directives:
fastcgi_pass, fastcgi_root, fastcgi_index, fastcgi_params,
fastcgi_connect_timeout, fastcgi_send_timeout, fastcgi_read_timeout,
fastcgi_send_lowat, fastcgi_header_buffer_size, fastcgi_buffers,
fastcgi_busy_buffers_size, fastcgi_temp_path,
fastcgi_max_temp_file_size, fastcgi_temp_file_write_size,
fastcgi_next_upstream, and fastcgi_x_powered_by.
*) Bugfix: the "[alert] zero size buf" error; bug appeared in 0.1.3.
*) Change: the URI must be specified after the host name in the
proxy_pass directive.
*) Change: the %3F symbol in the URI was considered as the argument
string start.
*) Feature: the unix domain sockets support in the
ngx_http_proxy_module.
*) Feature: the ssl_engine and ssl_ciphers directives.
Thanks to Sergey Skvortsov for SSL-accelerator.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 18 Jan 2005 00:00:00 +0300 |
parents | 74b1868dd3cd |
children | 72eb30262aac |
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 | |
16 | 33 static ngx_inline ngx_int_t ngx_list_init(ngx_list_t *list, ngx_pool_t *pool, |
0 | 34 ngx_uint_t n, size_t size) |
35 { | |
36 if (!(list->part.elts = ngx_palloc(pool, n * size))) { | |
37 return NGX_ERROR; | |
38 } | |
39 | |
40 list->part.nelts = 0; | |
41 list->part.next = NULL; | |
42 list->last = &list->part; | |
43 list->size = size; | |
44 list->nalloc = n; | |
45 list->pool = pool; | |
46 | |
47 return NGX_OK; | |
48 } | |
49 | |
50 | |
51 /* | |
52 * | |
53 * the iteration through the list: | |
54 * | |
55 * part = &list.part; | |
56 * data = part->elts; | |
57 * | |
58 * for (i = 0 ;; i++) { | |
59 * | |
60 * if (i >= part->nelts) { | |
61 * if (part->next == NULL) { | |
62 * break; | |
63 * } | |
64 * | |
65 * part = part->next; | |
66 * data = part->elts; | |
67 * i = 0; | |
68 * } | |
69 * | |
70 * ... data[i] ... | |
71 * | |
72 * } | |
73 */ | |
74 | |
75 | |
76 void *ngx_list_push(ngx_list_t *list); | |
77 | |
78 | |
79 #endif /* _NGX_LIST_H_INCLUDED_ */ |