summaryrefslogtreecommitdiffhomepage
path: root/src/core/ngx_resolver.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2012-02-27Fix of rbtree lookup on hash collisions.Maxim Dounin1-11/+6
Previous code incorrectly assumed that nodes with identical keys are linked together. This might not be true after tree rebalance. Patch by Lanshun Zhou.
2012-02-27Fixed null pointer dereference in resolver (ticket #91).Maxim Dounin1-5/+6
The cycle->new_log.file may not be set before config parsing finished if there are no error_log directive defined at global level. Fix is to copy it after config parsing. Patch by Roman Arutyunyan.
2012-02-13Time parsing cleanup.Maxim Dounin1-1/+1
Nuke NGX_PARSE_LARGE_TIME, it's not used since 0.6.30. The only error ngx_parse_time() can currently return is NGX_ERROR, check it explicitly and make sure to cast it to appropriate type (either time_t or ngx_msec_t) to avoid signedness warnings on platforms with unsigned time_t (notably QNX).
2012-01-18Copyright updated.Maxim Konovalov1-0/+1
2011-11-16Silenced a warning for some compilers.Ruslan Ermilov1-0/+1
2011-11-16Now nginx uses TTL of a DNS response when calculating cache validity.Ruslan Ermilov1-6/+38
Previously it used a hardcoded value of 300 seconds. Also added the "valid=" parameter to the "resolver" directive that can be used to override the cache validity time. Patch by Kirill A. Korinskiy with minor changes.
2011-11-09Fixed compression pointer processing in DNS response greater than 255 bytes.Igor Sysoev1-7/+7
Thanks to Ben Hawkes.
2011-10-24Support of several servers in the "resolver" directive.Igor Sysoev1-14/+44
Patch by Kirill A. Korinskiy.
2011-04-23fix building by gcc 4.6 without --with-debugIgor Sysoev1-4/+4
2010-09-27decrease resolver errors level to errorIgor Sysoev1-1/+1
2010-06-23style fixIgor Sysoev1-1/+1
2010-01-11add context to a resolver logIgor Sysoev1-13/+41
2009-12-02remove stale commentIgor Sysoev1-2/+0
2009-11-11use ngx_resolver_alloc() instead of ngx_resolver_calloc()Igor Sysoev1-2/+2
since all fields are filled
2009-11-11fix resolving an empty name (".")Igor Sysoev1-5/+5
2009-11-09*) fix resolving an empty name ("."),Igor Sysoev1-1/+2
*) add quotes in an error message, *) backout r3299 in ngx_mail_smtp_handler.c
2009-11-09fix "PTR ." case in address resolverIgor Sysoev1-0/+6
2009-11-09fix segfault in resolver:Igor Sysoev1-0/+2
ngx_resolve_name_done() and ngx_resolve_addr_done() did not delete contexts from a resolver node waiting list.
2009-11-02rename ngx_peer_addr_t to ngx_addr_tIgor Sysoev1-1/+1
2009-09-19fix resolver cache rbtree comparisonIgor Sysoev1-9/+3
2009-09-16fix memory leak in resolverIgor Sysoev1-0/+4
2009-04-30*) refactor error_log processing: listen socket log might inherit built-inIgor Sysoev1-3/+3
error_log with zero level, and r2447, r2466, r2467 were not enough *) remove bogus "stderr" level *) some functions and fields renames
2009-02-02fix building by msvc, introduced in r2487Igor Sysoev1-1/+1
2009-01-31fix return code, this fixes segfault when two or moreIgor Sysoev1-1/+3
simultaneous connections are resolving the same address
2009-01-30use length of uncompressed nameIgor Sysoev1-5/+4
2009-01-29store name pointer in variable allocated on stackIgor Sysoev1-4/+7
as resolver ctx may be already deallocated at this point
2009-01-29free addrs only it has been allocated before: non single addressIgor Sysoev1-1/+1
2009-01-29fix reverse resolving cache: it stored zero length namesIgor Sysoev1-1/+5
*) free name only if it has been already allocated *) store name length
2008-11-17fix compression pointer for big (>255) DNS responsesIgor Sysoev1-2/+2
2008-10-24show name for a FORMERR DNS responseIgor Sysoev1-6/+36
2008-10-24FORMERR DNS response may be equal to mininal query sizeIgor Sysoev1-1/+1
2008-05-14style fix: remove tabs and trailing spacesIgor Sysoev1-1/+1
2008-04-12limit CNAME recursionIgor Sysoev1-3/+22
2008-04-10use correct ngx_sprintf() formatsIgor Sysoev1-13/+13
2008-04-10log unexpected qtypeIgor Sysoev1-0/+4
2008-04-10take into account DNAMEIgor Sysoev1-0/+3
2008-04-09return NXDOMAIN for ".." in host nameIgor Sysoev1-1/+21
2008-04-09fix memory leak on resolver query send failureIgor Sysoev1-0/+12
2008-03-04fix previous commitIgor Sysoev1-1/+1
2008-03-04use cf->cycle->new_log because at merge stage cf->pool->log is old logIgor Sysoev1-8/+8
2008-02-28cleanup resolverIgor Sysoev1-7/+79
2008-02-28fix memory leaks, use unlocked ngx_resolver_free() for seldom failed casesIgor Sysoev1-12/+23
2008-02-28static ngx_resolver_calloc()Igor Sysoev1-1/+2
2008-02-06fix r1879Igor Sysoev1-0/+1
2008-02-06do not delete failed DNS request if there are waiting clientsIgor Sysoev1-2/+2
2008-02-06fix segfault if UDP connect() has failedIgor Sysoev1-2/+0
2007-12-24use %*s formatIgor Sysoev1-22/+5
2007-12-16no answers in DNS response should be NXDOMAINIgor Sysoev1-10/+13
2007-12-16fix segfault if response will have CNAME onlyIgor Sysoev1-0/+2
2007-12-03ngx_udp_recv()Igor Sysoev1-2/+2