]> Cypherpunks repositories - gostls13.git/commit
net: add Resolver.StrictErrors
authorPaul Marks <pmarks@google.com>
Wed, 2 Nov 2016 04:01:08 +0000 (21:01 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 9 Mar 2017 21:59:00 +0000 (21:59 +0000)
commitbfc164c64d33edfaf774b5c29b9bf5648a6447fb
tree11b2a206e29f409ea482d63c800dbc91f017d25a
parentb0e91d836a0abd46899cf78fdd93303afcf6c637
net: add Resolver.StrictErrors

When LookupIP is performing multiple subqueries, this option causes a
timeout/servfail affecting a single query to abort the whole operation,
instead of returning a partial (IPv4/IPv6-only) result.

Similarly, operations that walk the DNS search list will also abort when
encountering one of these errors.

Fixes #17448

Change-Id: Ice22e4aceb555c5a80d19bd1fde8b8fe87ac9517
Reviewed-on: https://go-review.googlesource.com/32572
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/dnsclient_unix.go
src/net/dnsclient_unix_test.go
src/net/lookup.go
src/net/lookup_unix.go
src/net/netgo_unix_test.go