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: dial tcp: lookup "domain": no such host, on Darwin #17172

Closed
drgomesp opened this issue Sep 20, 2016 · 4 comments
Closed

net: dial tcp: lookup "domain": no such host, on Darwin #17172

drgomesp opened this issue Sep 20, 2016 · 4 comments
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@drgomesp
Copy link

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go version go1.7.1 darwin/amd64

What operating system and processor architecture are you using (go env)?

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/drgomesp/go"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.7.1/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.7.1/libexec/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/7m/gc_br8z53hgdck9bg42ktr900000gn/T/go-build951792739=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"

What did you do?

Unfortunately, I can't share the code. The idea is simple: perform lots of concurrent requests on a loop until you get the error.

What did you expect to see?

I expect to not see errors related to TCP or network.

What did you see instead?

dial tcp: lookup "example.com": no such host

@ianlancetaylor
Copy link
Contributor

We are going to need a test case. This clearly doesn't happen normally. If the idea is simple, can you write a simple test?

@ianlancetaylor ianlancetaylor added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Sep 20, 2016
@bradfitz
Copy link
Contributor

Macs have very low default fd limits. And we use cgo by default on Darwin. (Which might change in 1.8)

This is almost certainly a fd exhaustion problem. The real question is why the error message sucks.

@bradfitz
Copy link
Contributor

Related: #16345 (net: revisit unconditional use of cgo lookups for darwin), cc @dpiddy

@bradfitz bradfitz changed the title net/http: dial tcp: lookup "domain": no such host net: dial tcp: lookup "domain": no such host, on Darwin Sep 20, 2016
@quentinmit quentinmit added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Oct 3, 2016
@quentinmit quentinmit added this to the Go1.8Maybe milestone Oct 3, 2016
@rsc
Copy link
Contributor

rsc commented Oct 20, 2016

It's pretty clear the error message came from the host C library saying there was no such host. I don't think we have control over that. Maybe #16345 will fix this but I'm not holding my breath.

Closing as dup of #16345 or else not enough information.

@rsc rsc closed this as completed Oct 20, 2016
@golang golang locked and limited conversation to collaborators Oct 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

6 participants