]> granicus.if.org Git - pgbouncer/commit
Async DNS lookup support via libevent DNS module.
authorMarko Kreen <markokr@gmail.com>
Fri, 10 Sep 2010 08:34:38 +0000 (11:34 +0300)
committerMarko Kreen <markokr@gmail.com>
Sat, 11 Sep 2010 09:06:59 +0000 (12:06 +0300)
commitc735970ae1aff392ab07f39d93248035d4dec700
tree6009d286c14b6c219eec19c1d8f0abab1d8761f0
parent64fd4238ed8a4b55a659adc2a88eeb81a6d02a0c
Async DNS lookup support via libevent DNS module.

With libevent 1.x we use evdns_base_resolve_ipv4() API,
which does not use /etc/hosts, but returns TTL.

With libevent 2.x we use evdns_getaddrinfo() API, which uses /etc/hosts
but does not return TTL.

As we need to have our own TTL handling anyway, the TTL is ignored
on libevent 1.x too, to be consistent.

New config variable 'dns_max_ttl', which sets time how long result
can be reused.
Makefile
doc/config.txt
include/bouncer.h
include/dnslookup.h [new file with mode: 0644]
include/sbuf.h
src/admin.c
src/dnslookup.c [new file with mode: 0644]
src/loader.c
src/main.c
src/objects.c
src/sbuf.c