zmap/zdns

Excess FD errors

chris-wood opened this issue · 3 comments

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.

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 commented

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