Subject: | Windows issues - Net::DNS::Select crashes(!) / probably obsolete; UDP status |
Hi all,
I'm working with the current build of Net::DNS with the current ActiveState 5.8 build and came across the following issues on both Windows 98 and XP:
When a query times out; Net::DNS::Select's can_read() returns something really bogus which causes the perl process to exit when it's accessed.
For example:
my @ready = $sel->can_read($timeout);
# fine here
foreach my $ready (@ready) { # crash here!
If there's a reply, this works correct. The first thing I did was to pull out Net::DNS::Select and use IO::Select instead, and it worked like a charm. There's a note saying the Net::DNS::Select wrapper is obsolete - everything seems to work fine without on my configurations.
Also, why is the udp support deactivated in Win32.pm? Works fine for me too; this default fallback to TCP can be really ugly when there are communication problems, since there is no pre-defined TCP timeout, meaning Net::DNS will wait 2 minutes per query(!)...