comparison src/core/ngx_resolver.h @ 372:6639b93e81b2 NGINX_0_6_30

nginx 0.6.30 *) Change: now if an "include" directive pattern does not match any file, then nginx does not issue an error. *) Feature: now the time in directives may be specified without spaces, for example, "1h50m". *) Bugfix: memory leaks if the "ssl_verify_client" directive was on. Thanks to Chavelle Vincent. *) Bugfix: the "sub_filter" directive might set text to change into output. *) Bugfix: the "error_page" directive did not take into account arguments in redirected URI. *) Bugfix: now nginx always opens files in binary mode under Cygwin. *) Bugfix: nginx could not be built on OpenBSD; bug appeared in 0.6.15.
author Igor Sysoev <http://sysoev.ru>
date Tue, 29 Apr 2008 00:00:00 +0400
parents babd3d9efb62
children c04fa65fe604
comparison
equal deleted inserted replaced
371:b6a2a305fdad 372:6639b93e81b2
15 #define NGX_RESOLVE_A 1 15 #define NGX_RESOLVE_A 1
16 #define NGX_RESOLVE_CNAME 5 16 #define NGX_RESOLVE_CNAME 5
17 #define NGX_RESOLVE_PTR 12 17 #define NGX_RESOLVE_PTR 12
18 #define NGX_RESOLVE_MX 15 18 #define NGX_RESOLVE_MX 15
19 #define NGX_RESOLVE_TXT 16 19 #define NGX_RESOLVE_TXT 16
20 #define NGX_RESOLVE_DNAME 39
20 21
21 #define NGX_RESOLVE_FORMERR 1 22 #define NGX_RESOLVE_FORMERR 1
22 #define NGX_RESOLVE_SERVFAIL 2 23 #define NGX_RESOLVE_SERVFAIL 2
23 #define NGX_RESOLVE_NXDOMAIN 3 24 #define NGX_RESOLVE_NXDOMAIN 3
24 #define NGX_RESOLVE_NOTIMP 4 25 #define NGX_RESOLVE_NOTIMP 4
25 #define NGX_RESOLVE_REFUSED 5 26 #define NGX_RESOLVE_REFUSED 5
26 #define NGX_RESOLVE_TIMEDOUT NGX_ETIMEDOUT 27 #define NGX_RESOLVE_TIMEDOUT NGX_ETIMEDOUT
27 28
28 29
29 #define NGX_NO_RESOLVER (void *) -1 30 #define NGX_NO_RESOLVER (void *) -1
31
32 #define NGX_RESOLVER_MAX_RECURSION 50
30 33
31 34
32 typedef struct { 35 typedef struct {
33 ngx_connection_t *connection; 36 ngx_connection_t *connection;
34 struct sockaddr *sockaddr; 37 struct sockaddr *sockaddr;
125 ngx_resolver_handler_pt handler; 128 ngx_resolver_handler_pt handler;
126 void *data; 129 void *data;
127 ngx_msec_t timeout; 130 ngx_msec_t timeout;
128 131
129 ngx_uint_t quick; /* unsigned quick:1; */ 132 ngx_uint_t quick; /* unsigned quick:1; */
133 ngx_uint_t recursion;
130 ngx_event_t *event; 134 ngx_event_t *event;
131 }; 135 };
132 136
133 137
134 ngx_resolver_t *ngx_resolver_create(ngx_conf_t *cf, ngx_peer_addr_t *addr); 138 ngx_resolver_t *ngx_resolver_create(ngx_conf_t *cf, ngx_peer_addr_t *addr);