]> Cypherpunks repositories - gostls13.git/commit
net: treat EAI_NODATA as errNoSuchHost
authorMateusz Poliwczak <mpoliwczak34@gmail.com>
Thu, 30 Mar 2023 07:22:35 +0000 (07:22 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 4 Apr 2023 14:21:59 +0000 (14:21 +0000)
commit23ed9f0f761ba1e6729fcb85c27ede93b10ad11e
tree3ff2ef2f6d0e59d1acaab7f1bda40f3021ed3bd0
parentd8d22664c65b0054fc9ea6ba7e945481348fc8fc
net: treat EAI_NODATA as errNoSuchHost

man getaddrinfo:
EAI_NODATA
              The specified network host exists, but does not have any
              network addresses defined.

In the go resolver we treat this kind of error as nosuchhost.

Change-Id: I69fab6f8da8e3a86907e65104bca9f055968633a
GitHub-Last-Rev: b4891e2addaeccecb242d0485daa168bb55cf54e
GitHub-Pull-Request: golang/go#57507
Reviewed-on: https://go-review.googlesource.com/c/go/+/459955
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Mateusz Poliwczak <mpoliwczak34@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/internal/syscall/unix/net_darwin.go
src/net/cgo_unix.go
src/net/cgo_unix_cgo.go
src/net/cgo_unix_syscall.go
src/net/lookup_test.go