more useful options | |
PerlMonks |
Re^2: Windows: AnyEvent -> HTTP -> DNS - > Blocking for minutesby sectokia (Pilgrim) |
on Oct 19, 2022 at 09:28 UTC ( [id://11147515]=note: print w/replies, xml ) | Need Help?? |
Thanks for response, sorry I took so long to reply I have been ill. Here is simple test that causes the issue on windows (disable all network adaptors on windows before running, so there are no DNS servers):
I have figured out the call chain, but I am unable to determine what to do about it. It seems like Resolver is trying to send a udp packet to a blank IP address? Anyevent::DNS is doing this: my $r = Net::DNS::Resolver->new;Net::DNS::Resolver::MSWin32 in its _init is calling: $defaults->nameservers(@nameservers);nameservers() is in Net::DNS::Resolver::Base which calls send() and _send_udp() _send_udp is then calling can_read from IO::Select This results in a blocking call at this line with the timeout being several minutes: defined($r) && (select($r,undef,undef,$timeout) > 0)I cannot figure out what resolver is trying to do here or who it is even trying to send to. Any help would be great! Thanks
In Section
Seekers of Perl Wisdom
|
|