Mercurial > hg > nginx-ranges
annotate src/core/ngx_inet.h @ 262:e0b1d0a6c629 NGINX_0_5_1
nginx 0.5.1
*) Bugfix: the "post_action" directive might not run after a
unsuccessful completion of a request.
*) Workaround: for Eudora for Mac; bug appeared in 0.4.11.
Thanks to Bron Gondwana.
*) Bugfix: if the "upstream" name was used in the "fastcgi_pass", then
the message "no port in upstream" was issued; bug appeared in 0.5.0.
*) Bugfix: if the "proxy_pass" and "fastcgi_pass" directives used the
same servers but different ports, then these directives uses the
first described port; bug appeared in 0.5.0.
*) Bugfix: if the "proxy_pass" and "fastcgi_pass" directives used the
unix domain sockets, then these directives used first described
socket; bug appeared in 0.5.0.
*) Bugfix: ngx_http_auth_basic_module ignored the user if it was in the
last line in the password file and there was no the carriage return,
the line feed, or the ":" symbol after the password.
*) Bugfix: the $upstream_response_time variable might be equal to
"0.000", although response time was more than 1 millisecond.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 11 Dec 2006 00:00:00 +0300 |
parents | 0effe91f6083 |
children | 251bcd11a5b8 |
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 host_header; | |
39 ngx_str_t port; | |
40 ngx_str_t uri; | |
28 | 41 |
260 | 42 in_port_t portn; |
43 in_port_t default_portn; | |
252 | 44 |
260 | 45 unsigned listen:1; |
46 unsigned uri_part:1; | |
47 unsigned upstream:1; | |
48 unsigned no_resolve:1; | |
49 unsigned one_addr:1; | |
28 | 50 |
260 | 51 unsigned wildcard:1; |
52 unsigned no_port:1; | |
53 | |
54 ngx_url_addr_t addr; | |
28 | 55 |
260 | 56 ngx_peer_addr_t *addrs; |
57 ngx_uint_t naddrs; | |
252 | 58 |
260 | 59 char *err; |
252 | 60 } ngx_url_t; |
28 | 61 |
62 | |
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); | |
252 | 66 ngx_int_t ngx_parse_url(ngx_conf_t *cf, ngx_url_t *u); |
260 | 67 ngx_int_t ngx_inet_resolve_host(ngx_conf_t *cf, ngx_url_t *u); |
68 | |
28 | 69 |
0 | 70 |
71 #endif /* _NGX_INET_H_INCLUDED_ */ |