Mercurial > hg > nginx-mail
annotate src/core/ngx_inet.h @ 358:9121a0a91f47 NGINX_0_6_23
nginx 0.6.23
*) Change: the "off" parameter in the "ssl_session_cache" directive;
now this is default parameter.
*) Change: the "open_file_cache_retest" directive was renamed to the
"open_file_cache_valid".
*) Feature: the "open_file_cache_min_uses" directive.
*) Feature: the ngx_http_gzip_static_module.
*) Feature: the "gzip_disable" directive.
*) Feature: the "memcached_pass" directive may be used inside the "if"
block.
*) Bugfix: a segmentation fault occurred in worker process, if the
"memcached_pass" and "if" directives were used in the same location.
*) Bugfix: if a "satisfy_any on" directive was used and not all access
and auth modules directives were set, then other given access and
auth directives were not tested;
*) Bugfix: regex parameters in a "valid_referers" directive were not
inherited from previous level.
*) Bugfix: a "post_action" directive did run if a request was completed
with 499 status code.
*) Bugfix: optimization of 16K buffer usage in a SSL connection.
Thanks to Ben Maurer.
*) Bugfix: the STARTTLS in SMTP mode did not work.
Thanks to Oleg Motienko.
*) Bugfix: in HTTPS mode requests might fail with the "bad write retry"
error; bug appeared in 0.5.13.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Thu, 27 Dec 2007 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_ */ |