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

Excess FD errors #250

Closed
chris-wood opened this issue Sep 6, 2021 · 4 comments
Closed

Excess FD errors #250

chris-wood opened this issue Sep 6, 2021 · 4 comments
Assignees
Milestone

Comments

@chris-wood
Copy link

Running from a fresh build of tip of master on macOS, I'm seeing the following:

$ echo "google.com" | ./zdns A
{"data":{"protocol":"udp","resolver":"[2001:558:feed::2]:53"},"error":"write udp 10.0.0.184:59008-\u003e[2001:558:feed::2]:53: address 2001:558:feed::2: non-IPv4 address","name":"google.com","status":"ERROR","timestamp":"2021-09-05T20:38:25-07:00"}
FATA[0000] unable to create socketlisten udp 10.0.0.184:0: socket: too many open files 

I assume this isn't expected, so I'm wondering if this is a regression. I could of course be using it wrong, too! Happy to provide any additional information if it would be helpful.

@zakird
Copy link
Member

zakird commented Sep 6, 2021 via email

@chris-wood
Copy link
Author

Capping the number of worker threads did the trick. Maybe bumping the default down to something smaller would be useful? The fix wasn't obvious to me 🤷 If not, we can close.

@zakird
Copy link
Member

zakird commented Nov 4, 2023

At the very least we should output a useful error so that the user knows what's going on and how to fix

@zakird zakird added this to the Version 1.1 milestone Nov 4, 2023
@zakird
Copy link
Member

zakird commented Nov 4, 2024

I'm going to close this since #448 was merged, which should prevent this problem in most all cases. If folks want to manually up the rates, they can.

@zakird zakird closed this as completed Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants