summaryrefslogtreecommitdiff
path: root/sparc
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2018-05-11 22:37:28 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2018-05-11 22:37:28 +0200
commit2728e065895e7af2493ed7af3b8897caa416adf6 (patch)
treefaa0730c1e9359c57f40a942687d3c995ec525a1 /sparc
parentd5cf062e7a0e3a6b2c2939c7615ffd722cdbf1a8 (diff)
downloadplan9front-2728e065895e7af2493ed7af3b8897caa416adf6.tar.xz
ndb/dns: lookup *all* entries in dblookup(), v4 and v6 queries in parallel, remove weigthed timeouts
dblookup() used to only return the first matching entry. in case of ipv6, we want all entries returned to get both v4 and v6 addresses... and these might not neccesarily be in the same entry (see /lib/ndb/common). note also this makes it behave the same as in cachedb mode which reads in the whole database. we do not know if v4 or v6 routing works, so the simplest is just to query v4 and v6 nameservers in parallel. this is done by changing serveraddrs() to return one address type, and we make sure to get at least one v4 and one v6 address each round. get rid of the weigthed timeout code... there where too many assumptions. instead, we give a round 500ms timeout (or 1 second in patient mode) and honor the maximum query time.
Diffstat (limited to 'sparc')
0 files changed, 0 insertions, 0 deletions