comparison src/http/ngx_http.h @ 50:72eb30262aac NGINX_0_1_25

nginx 0.1.25 *) Bugfix: nginx did run on Linux parisc. *) Feature: nginx now does not start under FreeBSD if the sysctl kern.ipc.somaxconn value is too big. *) Bugfix: if a request was internally redirected by the ngx_http_index_module module to the ngx_http_proxy_module or ngx_http_fastcgi_module modules, then the index file was not closed after request completion. *) Feature: the "proxy_pass" can be used in location with regular expression. *) Feature: the ngx_http_rewrite_filter_module module supports the condition like "if ($HTTP_USER_AGENT ~ MSIE)". *) Bugfix: nginx started too slow if the large number of addresses and text values were used in the "geo" directive. *) Change: a variable name must be declared as "$name" in the "geo" directive. The previous variant without "$" is still supported, but will be removed soon. *) Feature: the "%{VARIABLE}v" logging parameter. *) Feature: the "set $name value" directive. *) Bugfix: gcc 4.0 compatibility. *) Feature: the --with-openssl-opt=OPTIONS autoconfiguration directive.
author Igor Sysoev <http://sysoev.ru>
date Sat, 19 Mar 2005 00:00:00 +0300
parents 6cfc63e68377
children bcb5fce0b038
comparison
equal deleted inserted replaced
49:93dabbc9efb9 50:72eb30262aac
14 14
15 typedef struct ngx_http_request_s ngx_http_request_t; 15 typedef struct ngx_http_request_s ngx_http_request_t;
16 typedef struct ngx_http_log_ctx_s ngx_http_log_ctx_t; 16 typedef struct ngx_http_log_ctx_s ngx_http_log_ctx_t;
17 typedef struct ngx_http_cleanup_s ngx_http_cleanup_t; 17 typedef struct ngx_http_cleanup_s ngx_http_cleanup_t;
18 typedef struct ngx_http_in_addr_s ngx_http_in_addr_t; 18 typedef struct ngx_http_in_addr_s ngx_http_in_addr_t;
19 typedef struct ngx_http_variable_value_s ngx_http_variable_value_t;
20
19 21
20 #if (NGX_HTTP_CACHE) 22 #if (NGX_HTTP_CACHE)
21 #include <ngx_http_cache.h> 23 #include <ngx_http_cache.h>
22 #endif 24 #endif
23 /* STUB */ 25 /* STUB */
25 27
26 #include <ngx_http_upstream.h> 28 #include <ngx_http_upstream.h>
27 #include <ngx_http_request.h> 29 #include <ngx_http_request.h>
28 #include <ngx_http_config.h> 30 #include <ngx_http_config.h>
29 #include <ngx_http_busy_lock.h> 31 #include <ngx_http_busy_lock.h>
30 #include <ngx_http_log_handler.h> 32 #include <ngx_http_log_module.h>
31 #include <ngx_http_core_module.h> 33 #include <ngx_http_core_module.h>
32 #include <ngx_http_variables.h> 34 #include <ngx_http_variables.h>
33 35
34 #if (NGX_HTTP_SSL) 36 #if (NGX_HTTP_SSL)
35 #include <ngx_http_ssl_module.h> 37 #include <ngx_http_ssl_module.h>
44 46
45 #define ngx_http_get_module_ctx(r, module) (r)->ctx[module.ctx_index] 47 #define ngx_http_get_module_ctx(r, module) (r)->ctx[module.ctx_index]
46 #define ngx_http_get_module_err_ctx(r, module) \ 48 #define ngx_http_get_module_err_ctx(r, module) \
47 ((r)->err_ctx ? (r)->err_ctx[module.ctx_index] : (r)->ctx[module.ctx_index]) 49 ((r)->err_ctx ? (r)->err_ctx[module.ctx_index] : (r)->ctx[module.ctx_index])
48 50
49 /* STUB */
50 #define ngx_http_create_ctx(r, cx, module, size, error) \
51 do { \
52 ngx_test_null(cx, ngx_pcalloc(r->pool, size), error); \
53 r->ctx[module.ctx_index] = cx; \
54 } while (0)
55 /**/
56
57 #define ngx_http_set_ctx(r, c, module) r->ctx[module.ctx_index] = c; 51 #define ngx_http_set_ctx(r, c, module) r->ctx[module.ctx_index] = c;
58
59 #define ngx_http_delete_ctx(r, module) r->ctx[module.ctx_index] = NULL; 52 #define ngx_http_delete_ctx(r, module) r->ctx[module.ctx_index] = NULL;
60 53
61 54
62 void ngx_http_init_connection(ngx_connection_t *c); 55 void ngx_http_init_connection(ngx_connection_t *c);
63 56