• David du Colombier's avatar
    net: handle "dns failure" as errNoSuchHost on Plan 9 · c63db157
    David du Colombier authored
    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: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    c63db157
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...