Mercurial > hg > nginx-vendor-0-7
annotate src/core/ngx_palloc.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 | f0b350454894 |
children | aab2ea7c0458 |
rev | line source |
---|---|
0 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #ifndef _NGX_PALLOC_H_INCLUDED_ | |
8 #define _NGX_PALLOC_H_INCLUDED_ | |
9 | |
10 | |
11 #include <ngx_config.h> | |
12 #include <ngx_core.h> | |
13 | |
14 | |
15 /* | |
16 * NGX_MAX_ALLOC_FROM_POOL should be (ngx_page_size - 1), i.e. 4095 on x86. | |
17 * On FreeBSD 5.x it allows to use the zero copy sending. | |
18 * On Windows NT it decreases a number of locked pages in a kernel. | |
19 */ | |
20 #define NGX_MAX_ALLOC_FROM_POOL (ngx_pagesize - 1) | |
21 | |
22 #define NGX_DEFAULT_POOL_SIZE (16 * 1024) | |
23 | |
24 #define ngx_test_null(p, alloc, rc) if ((p = alloc) == NULL) { return rc; } | |
25 | |
26 | |
27 typedef struct ngx_pool_large_s ngx_pool_large_t; | |
28 | |
29 struct ngx_pool_large_s { | |
30 ngx_pool_large_t *next; | |
31 void *alloc; | |
32 }; | |
33 | |
34 | |
35 struct ngx_pool_s { | |
36 char *last; | |
37 char *end; | |
38 ngx_pool_t *next; | |
39 ngx_pool_large_t *large; | |
40 ngx_log_t *log; | |
41 }; | |
42 | |
43 | |
44 void *ngx_alloc(size_t size, ngx_log_t *log); | |
45 void *ngx_calloc(size_t size, ngx_log_t *log); | |
46 | |
47 ngx_pool_t *ngx_create_pool(size_t size, ngx_log_t *log); | |
48 void ngx_destroy_pool(ngx_pool_t *pool); | |
49 | |
50 void *ngx_palloc(ngx_pool_t *pool, size_t size); | |
51 void *ngx_pcalloc(ngx_pool_t *pool, size_t size); | |
52 ngx_int_t ngx_pfree(ngx_pool_t *pool, void *p); | |
53 | |
54 | |
55 #endif /* _NGX_PALLOC_H_INCLUDED_ */ |