]> Cypherpunks repositories - gostls13.git/commit
net: handle "dns failure" as errNoSuchHost on Plan 9
authorDavid du Colombier <0intro@gmail.com>
Mon, 24 Oct 2016 22:31:45 +0000 (00:31 +0200)
committerDavid du Colombier <0intro@gmail.com>
Tue, 25 Oct 2016 00:04:42 +0000 (00:04 +0000)
commitc63db157bd669845a23255ab268596669a5ea5df
tree98c3da4aac173ff6dea1cedc72db15c5cd91a829
parent6e78f7697405e8c24af796322e4c3c325ed97d95
net: handle "dns failure" as errNoSuchHost on Plan 9

CL 31468 added TestLookupNonLDH, which was failing on Plan 9,
because LookupHost was expecting to return errNoSuchHost
on DNS resolution failure, while Plan 9 returned the
"dns failure" string.

In the Plan 9 implementation of lookupHost, we now return
errNoSuchHost instead of the "dns failure" string, so
the behavior is more consistant with other operating systems.

Fixes #17568.

Change-Id: If64f580dc0626a4a4f19e5511ba2ca5daff5f789
Reviewed-on: https://go-review.googlesource.com/31873
Run-TryBot: David du Colombier <0intro@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/lookup_plan9.go