Mercurial > hg > nginx-ranges
comparison src/http/ngx_http_script.h @ 122:d25a1d6034f1 NGINX_0_3_8
nginx 0.3.8
*) Security: nginx now checks URI got from a backend in
"X-Accel-Redirect" header line or in SSI file for the "/../" paths
and zeroes.
*) Change: nginx now does not treat the empty user name in the
"Authorization" header line as valid one.
*) Feature: the "ssl_session_timeout" directives of the
ngx_http_ssl_module and ngx_imap_ssl_module.
*) Feature: the "auth_http_header" directive of the
ngx_imap_auth_http_module.
*) Feature: the "add_header" directive.
*) Feature: the ngx_http_realip_module.
*) Feature: the new variables to use in the "log_format" directive:
$bytes_sent, $apache_bytes_sent, $status, $time_gmt, $uri,
$request_time, $request_length, $upstream_status,
$upstream_response_time, $gzip_ratio, $uid_got, $uid_set,
$connection, $pipe, and $msec. The parameters in the "%name" form
will be canceled soon.
*) Change: now the false variable values in the "if" directive are the
empty string "" and string starting with "0".
*) Bugfix: while using proxied or FastCGI-server nginx may leave
connections and temporary files with client requests in open state.
*) Bugfix: the worker processes did not flush the buffered logs on
graceful exit.
*) Bugfix: if the request URI was changes by the "rewrite" directive
and the request was proxied in location given by regular expression,
then the incorrect request was transferred to backend; bug appeared
in 0.2.6.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" header.
*) Bugfix: nginx may stop to accept requests if the "rtsig" method and
several worker processes were used.
*) Bugfix: the "\"" and "\'" escape symbols were incorrectly handled in
SSI commands.
*) Bugfix: if the response was ended just after the SSI command and
gzipping was used, then the response did not transferred complete or
did not transferred at all.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 09 Nov 2005 00:00:00 +0300 |
parents | da9a3b14312d |
children | df17fbafec8f |
comparison
equal
deleted
inserted
replaced
121:737953b238a4 | 122:d25a1d6034f1 |
---|---|
12 #include <ngx_core.h> | 12 #include <ngx_core.h> |
13 #include <ngx_http.h> | 13 #include <ngx_http.h> |
14 | 14 |
15 | 15 |
16 typedef struct { | 16 typedef struct { |
17 u_char *ip; | 17 u_char *ip; |
18 u_char *pos; | 18 u_char *pos; |
19 ngx_http_variable_value_t *sp; | 19 ngx_http_variable_value_t *sp; |
20 | 20 |
21 ngx_str_t buf; | 21 ngx_str_t buf; |
22 ngx_str_t line; | 22 ngx_str_t line; |
23 | 23 |
24 /* the start of the rewritten arguments */ | 24 /* the start of the rewritten arguments */ |
25 u_char *args; | 25 u_char *args; |
26 | 26 |
27 unsigned skip:1; | 27 unsigned flushed:1; |
28 unsigned quote:1; | 28 unsigned skip:1; |
29 unsigned log:1; | 29 unsigned quote:1; |
30 unsigned log:1; | |
30 | 31 |
31 int *captures; | 32 int *captures; |
32 ngx_uint_t ncaptures; | 33 ngx_uint_t ncaptures; |
33 | 34 |
34 ngx_int_t status; | 35 ngx_int_t status; |
35 ngx_http_request_t *request; | 36 ngx_http_request_t *request; |
36 } ngx_http_script_engine_t; | 37 } ngx_http_script_engine_t; |
37 | 38 |
38 | 39 |
39 typedef struct { | 40 typedef struct { |
40 ngx_conf_t *cf; | 41 ngx_conf_t *cf; |
41 ngx_str_t *source; | 42 ngx_str_t *source; |
42 ngx_array_t **lengths; | |
43 ngx_array_t **values; | |
44 | 43 |
45 ngx_uint_t variables; | 44 ngx_array_t **flushes; |
46 ngx_uint_t ncaptures; | 45 ngx_array_t **lengths; |
47 ngx_uint_t size; | 46 ngx_array_t **values; |
48 | 47 |
49 void *main; | 48 ngx_uint_t variables; |
49 ngx_uint_t ncaptures; | |
50 ngx_uint_t size; | |
50 | 51 |
51 unsigned compile_args:1; | 52 void *main; |
52 unsigned compile_null:1; | |
53 unsigned complete_lengths:1; | |
54 unsigned complete_values:1; | |
55 | 53 |
56 unsigned args:1; | 54 unsigned compile_args:1; |
55 unsigned compile_null:1; | |
56 unsigned complete_lengths:1; | |
57 unsigned complete_values:1; | |
58 | |
59 unsigned args:1; | |
57 } ngx_http_script_compile_t; | 60 } ngx_http_script_compile_t; |
58 | 61 |
59 | 62 |
60 typedef void (*ngx_http_script_code_pt) (ngx_http_script_engine_t *e); | 63 typedef void (*ngx_http_script_code_pt) (ngx_http_script_engine_t *e); |
61 typedef size_t (*ngx_http_script_len_code_pt) (ngx_http_script_engine_t *e); | 64 typedef size_t (*ngx_http_script_len_code_pt) (ngx_http_script_engine_t *e); |
147 } ngx_http_script_value_code_t; | 150 } ngx_http_script_value_code_t; |
148 | 151 |
149 | 152 |
150 ngx_uint_t ngx_http_script_variables_count(ngx_str_t *value); | 153 ngx_uint_t ngx_http_script_variables_count(ngx_str_t *value); |
151 ngx_int_t ngx_http_script_compile(ngx_http_script_compile_t *sc); | 154 ngx_int_t ngx_http_script_compile(ngx_http_script_compile_t *sc); |
155 void ngx_http_script_flush_no_cachable_variables(ngx_http_request_t *r, | |
156 ngx_array_t *indices); | |
152 | 157 |
153 void *ngx_http_script_start_code(ngx_pool_t *pool, ngx_array_t **codes, | 158 void *ngx_http_script_start_code(ngx_pool_t *pool, ngx_array_t **codes, |
154 size_t size); | 159 size_t size); |
155 void *ngx_http_script_add_code(ngx_array_t *codes, size_t size, void *code); | 160 void *ngx_http_script_add_code(ngx_array_t *codes, size_t size, void *code); |
156 | 161 |