Skip to content

net: cgoLookupIPCNAME doesn't try again for temporary failures in getaddrinfo() #5338

@anacrolix

Description

@anacrolix
go version devel +55f0ec9b3c00 Mon Apr 22 22:09:11 2013 -0700 linux/amd64

Heavy usage of net.Dial via net/http.Get gives errors stringifying as " Temporary
failure in name resolution" which corresponds to EAI_AGAIN returned from
getaddrinfo().

I expect net.Dial to retry on this error code.

I'm using 6g on Linux.

No effort is made to set the IsTimeout member of DNSError at the callsite
http://code.google.com/p/go/source/browse/src/pkg/net/cgo_unix.go#98, and an appropriate
IsTemporary variable is not available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions