Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
anacrolix opened this issue Apr 23, 2013 · 10 comments
Open
Milestone

Comments

@anacrolix
Copy link
Contributor

@anacrolix anacrolix commented Apr 23, 2013

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.
@rsc
Copy link
Contributor

@rsc rsc commented Jul 30, 2013

Comment 2:

When should it try again? I'm kind of confused.

Labels changed: added priority-later, go1.2maybe, removed priority-triage.

Status changed to Accepted.

@rsc
Copy link
Contributor

@rsc rsc commented Jul 30, 2013

Comment 3:

Labels changed: added feature.

@anacrolix
Copy link
Contributor Author

@anacrolix anacrolix commented Jul 31, 2013

Comment 4:

When calling getaddrinfo, EAI_AGAIN should be retried in synchronous calling code no?
@robpike
Copy link
Contributor

@robpike robpike commented Aug 20, 2013

Comment 5:

Deferring to 1.3.

Labels changed: added go1.3maybe, removed go1.2maybe.

@robpike
Copy link
Contributor

@robpike robpike commented Aug 20, 2013

Comment 6:

Labels changed: removed go1.3maybe.

@rsc
Copy link
Contributor

@rsc rsc commented Nov 27, 2013

Comment 7:

Labels changed: added go1.3maybe.

@rsc
Copy link
Contributor

@rsc rsc commented Nov 27, 2013

Comment 8:

Labels changed: removed feature.

@rsc
Copy link
Contributor

@rsc rsc commented Dec 4, 2013

Comment 9:

Labels changed: added release-none, removed go1.3maybe.

@rsc
Copy link
Contributor

@rsc rsc commented Dec 4, 2013

Comment 10:

Labels changed: added repo-main.

@rsc rsc added this to the Unplanned milestone Apr 10, 2015
@odeke-em
Copy link
Member

@odeke-em odeke-em commented Jun 6, 2020

Kindly cc-ing @iangudger, if you’ve got free time and are bored, perhaps this issue could use your eyes. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.