getdns
getdns copied to clipboard
Crash with filedescriptor > 1024
Hi,
I am using the synchonous mode.
I have been using getdns for over a year on Linux but know I am porting my code to Windows and I am getting an error when the file descriptor is higher than 1024. This happens after a few successful requests.
I am aware of this ticket https://github.com/getdnsapi/getdns/issues/222, which says that poll is now the default for the event loop but I can tell that this is not the case; using gdb I was able to see the code going in functions part of the select_eventloop.c and use the select mechanism.
I tested with 1.7.2 and got the same behavior.
What is the solution?
PS. The code should be cleanly failing but it not the case; the request is still attempted but never returns. The result is a thread that consumes 100% of the CPU. Not good! PPS I am cross-compiling with mingw32-w64