]> Cypherpunks repositories - gostls13.git/commit
net: consistently return DNSError on lookup failure
authorIan Lance Taylor <iant@golang.org>
Thu, 30 Sep 2021 23:35:52 +0000 (16:35 -0700)
committerIan Lance Taylor <iant@golang.org>
Sat, 2 Oct 2021 00:18:01 +0000 (00:18 +0000)
commitcf241a34a2ee8b337e11731958d918cbfd338caf
treeca858a4cc026324869ca7e766ba2bca34cab02ee
parentc129af90eb20a5723fc7ed19b19afe054036fe71
net: consistently return DNSError on lookup failure

Previously if we failed because the context timed out or was canceled,
we returned errCanceled or errTimeout.

Fixes #39178

Change-Id: I11bd7ebfaa7e5775fb05dfbb6b67f8307c8d8697
Reviewed-on: https://go-review.googlesource.com/c/go/+/353400
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
src/net/lookup.go
src/net/lookup_test.go