-
Notifications
You must be signed in to change notification settings - Fork 18k
net: Misleading error "no such host" when running out of file descriptiors #56192
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
Comments
It only happens with the cgo resolver, while using the go resolver it returns the correct error: |
Change https://go.dev/cl/443255 mentions this issue: |
@mateusz834 could you please mention which libc and version of it you are using? https://dev.to/0xbf/how-to-get-glibc-version-c-lang-26he describes how to do that for glibc. |
@nightlyone |
As discussed in CL 443255 this is caused by a glibc bug. I filled a bug report here: https://sourceware.org/bugzilla/show_bug.cgi?id=29717 |
For now it can be workarounded by forcing the go resolver, or using different libc (musl). |
Duplicate of #18588 |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Given the following program:
Then build and execute as follows:
We initially encountered this bug in a production program (where, due to our bug, a request got repeated in a loop without closing the response body) with far more gracious ulimit. This is not a fringe case limited to setting the ulimit haphazardly low.
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: