]> git.ipfire.org Git - thirdparty/squid.git/commit
Send DNS A and AAAA queries in parallel
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Fri, 27 Jan 2012 12:47:06 +0000 (05:47 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 27 Jan 2012 12:47:06 +0000 (05:47 -0700)
commitcc5cbd1d495fa423169953d5d958d6721eeae347
tree813767d238db51b7bea6d657f5882dd1caf8777a
parent601b7f7d681495b2b84abb24d172f7df39c8a5b5
Send DNS A and AAAA queries in parallel

This implements sending DNS A & AAAA queries in parallel by
creating "slave" idns_query requests. Current implementation
uses the A lookup as "master" and AAAA as "slave" query.

Long term this should probably be restructured to separate "lookup
state" and "query", or even better yet to defer the DNS lookups
until connect time and perform A respective AAAA as needed only and
not look up both before attemting to connect.

This also drops the dns_v4_fallback directive as it have no effect with
parallel DNS lookups. This directive should be reinstanciated in future
to enable pure IPv6 usage.
src/cf.data.pre
src/dns_internal.cc
src/structs.h