Mercurial > hg > nginx-vendor-0-7
annotate src/core/ngx_inet.h @ 366:babd3d9efb62 NGINX_0_6_27
nginx 0.6.27
*) Change: now by default the rtsig method is not built on
Linux 2.6.18+.
*) Change: now a request method is not changed while redirection to a
named location via an "error_page" directive.
*) Feature: the "resolver" and "resolver_timeout" directives in SMTP
proxy.
*) Feature: the "post_action" directive supports named locations.
*) Bugfix: a segmentation fault occurred in worker process, if a
request was redirected from proxy, FastCGI, or memcached location to
static named locations.
*) Bugfix: browsers did not repeat SSL handshake if there is no valid
client certificate in first handshake.
Thanks to Alexander V. Inyukhin.
*) Bugfix: if response code 495-497 was redirected via an "error_page"
directive without code change, then nginx tried to allocate too many
memory.
*) Bugfix: memory leak in long-lived non buffered connections.
*) Bugfix: memory leak in resolver.
*) Bugfix: a segmentation fault occurred in worker process, if a
request was redirected from proxy, FastCGI, or memcached location to
static named locations.
*) Bugfix: in the $proxy_host and $proxy_port variables caching.
Thanks to Sergey Bochenkov.
*) Bugfix: a "proxy_pass" directive with variables used incorrectly the
same port as in another "proxy_pass" directive with the same host
name and without variables.
Thanks to Sergey Bochenkov.
*) Bugfix: an alert "sendmsg() failed (9: Bad file descriptor)" on some
64-bit platforms while reconfiguration.
*) Bugfix: a segmentation fault occurred in worker process, if empty
stub block was used second time in SSI.
*) Bugfix: in copying URI part contained escaped symbols into arguments.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 12 Mar 2008 00:00:00 +0300 |
parents | 583decdb82a4 |
children | 6ebbca3d5ed7 |
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; | |
354 | 38 ngx_str_t port_text; |
260 | 39 ngx_str_t uri; |
28 | 40 |
266 | 41 in_port_t port; |
42 in_port_t default_port; | |
252 | 43 |
260 | 44 unsigned listen:1; |
45 unsigned uri_part:1; | |
46 unsigned no_resolve:1; | |
47 unsigned one_addr:1; | |
28 | 48 |
260 | 49 unsigned wildcard:1; |
50 unsigned no_port:1; | |
266 | 51 unsigned unix_socket:1; |
260 | 52 |
53 ngx_url_addr_t addr; | |
28 | 54 |
260 | 55 ngx_peer_addr_t *addrs; |
56 ngx_uint_t naddrs; | |
252 | 57 |
260 | 58 char *err; |
252 | 59 } ngx_url_t; |
28 | 60 |
61 | |
348 | 62 in_addr_t ngx_inet_addr(u_char *text, size_t len); |
252 | 63 size_t ngx_sock_ntop(int family, struct sockaddr *sa, u_char *text, size_t len); |
0 | 64 size_t ngx_inet_ntop(int family, void *addr, u_char *text, size_t len); |
65 ngx_int_t ngx_ptocidr(ngx_str_t *text, void *cidr); | |
340 | 66 ngx_int_t ngx_parse_url(ngx_pool_t *pool, ngx_url_t *u); |
67 ngx_int_t ngx_inet_resolve_host(ngx_pool_t *pool, ngx_url_t *u); | |
260 | 68 |
28 | 69 |
0 | 70 |
71 #endif /* _NGX_INET_H_INCLUDED_ */ |