Mercurial > hg > nginx-vendor-0-5
annotate src/core/ngx_inet.h @ 328:26ff8d6b618d NGINX_0_5_34
nginx 0.5.34
*) Change: now the full request line instead of URI only is written to
error_log.
*) Feature: Cygwin compatibility.
Thanks to Vladimir Kutakov.
*) Feature: the "merge_slashes" directive.
*) Feature: the "gzip_vary" directive.
*) Feature: the "server_tokens" directive.
*) Feature: the "access_log" directive may be used inside the
"limit_except" block.
*) Bugfix: if the $server_protocol was used in FastCGI parameters and a
request line length was near to the "client_header_buffer_size"
directive value, then nginx issued an alert "fastcgi: the request
record is too big".
*) Bugfix: if a plain text HTTP/0.9 version request was made to HTTPS
server, then nginx returned usual response.
*) Bugfix: URL double escaping in a redirect of the "msie_refresh"
directive; bug appeared in 0.5.28.
*) Bugfix: a segmentation fault might occur in worker process if
subrequests were used.
*) Bugfix: the big responses may be transferred truncated if SSL and
gzip were used.
*) Bugfix: compatibility with mget.
*) Bugfix: nginx did not unescape URI in the "include" SSI command.
*) Bugfix: the segmentation fault was occurred on start or while
reconfiguration if variable was used in the "charset" or
"source_charset" directives.
*) Bugfix: nginx returned the 400 response on requests like
"GET http://www.domain.com HTTP/1.0".
Thanks to James Oakley.
*) Bugfix: a segmentation fault occurred in worker process if
$date_local and $date_gmt were used outside the
ngx_http_ssi_filter_module.
*) Bugfix: a segmentation fault might occur in worker process if debug
log was enabled.
Thanks to Andrei Nigmatulin.
*) Bugfix: ngx_http_memcached_module did not set
$upstream_response_time.
Thanks to Maxim Dounin.
*) Bugfix: a worker process may got caught in an endless loop, if the
memcached was used.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Thu, 13 Dec 2007 00:00:00 +0300 |
parents | 251bcd11a5b8 |
children |
rev | line source |
---|---|
0 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #ifndef _NGX_INET_H_INCLUDED_ | |
8 #define _NGX_INET_H_INCLUDED_ | |
9 | |
10 | |
28 | 11 #include <ngx_config.h> |
12 #include <ngx_core.h> | |
13 | |
14 | |
0 | 15 typedef struct { |
260 | 16 in_addr_t addr; |
17 in_addr_t mask; | |
0 | 18 } ngx_inet_cidr_t; |
19 | |
20 | |
252 | 21 typedef union { |
260 | 22 in_addr_t in_addr; |
252 | 23 } ngx_url_addr_t; |
200 | 24 |
25 | |
26 typedef struct { | |
260 | 27 struct sockaddr *sockaddr; |
28 socklen_t socklen; | |
29 ngx_str_t name; | |
30 } ngx_peer_addr_t; | |
252 | 31 |
28 | 32 |
260 | 33 typedef struct { |
34 ngx_int_t type; | |
35 | |
36 ngx_str_t url; | |
37 ngx_str_t host; | |
38 ngx_str_t uri; | |
28 | 39 |
266 | 40 in_port_t port; |
41 in_port_t default_port; | |
252 | 42 |
260 | 43 unsigned listen:1; |
44 unsigned uri_part:1; | |
45 unsigned no_resolve:1; | |
46 unsigned one_addr:1; | |
28 | 47 |
260 | 48 unsigned wildcard:1; |
49 unsigned no_port:1; | |
266 | 50 unsigned unix_socket:1; |
260 | 51 |
52 ngx_url_addr_t addr; | |
28 | 53 |
260 | 54 ngx_peer_addr_t *addrs; |
55 ngx_uint_t naddrs; | |
252 | 56 |
260 | 57 char *err; |
252 | 58 } ngx_url_t; |
28 | 59 |
60 | |
252 | 61 size_t ngx_sock_ntop(int family, struct sockaddr *sa, u_char *text, size_t len); |
0 | 62 size_t ngx_inet_ntop(int family, void *addr, u_char *text, size_t len); |
63 ngx_int_t ngx_ptocidr(ngx_str_t *text, void *cidr); | |
328 | 64 ngx_int_t ngx_parse_url(ngx_pool_t *pool, ngx_url_t *u); |
65 ngx_int_t ngx_inet_resolve_host(ngx_pool_t *pool, ngx_url_t *u); | |
260 | 66 |
28 | 67 |
0 | 68 |
69 #endif /* _NGX_INET_H_INCLUDED_ */ |