Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
net: cgoLookupIPCNAME doesn't try again for temporary failures in getaddrinfo() #5338
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.