Skip Menu |

This queue is for tickets about the Net-DNS CPAN distribution.

Report information
The Basics
Id: 17596
Status: resolved
Priority: 0/
Queue: Net-DNS

People
Owner: OLAF [...] cpan.org
Requestors: phoffman [...] proper.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.55
Fixed in: (no value)



Subject: Timeouts don't seem to work
tcp_timeout and udp_timeout seem to be ignored in version 0.55. $res=Net::DNS::Resolver->new(nameservers=>[('63.249.108.169')]); $res->tcp_timeout(10); $res->udp_timeout(10); $Now = localtime; print "Before the good: $Now\n"; @TheGoodAXFR = $res->axfr('test.proper.com'); if(@TheGoodAXFR) { print "Worked\n" } else { print "Failed\n" }; $res=Net::DNS::Resolver->new(nameservers=>[('5.6.7.8')]); $res->tcp_timeout(10); $res->udp_timeout(10); $Now = localtime; print "Before the bad: $Now\n"; @TheBadAXFR = $res->axfr('bogus.proper.com'); if(@TheBadAXFR) { print "Worked\n" } else { print "Failed\n" }; $Now = localtime; print "After the bad: $Now\n"; produces: Before the good: Sun Feb 12 09:54:56 2006 Worked Before the bad: Sun Feb 12 09:54:56 2006 Failed After the bad: Sun Feb 12 09:56:11 2006 I cannot figure out why the second AXFR takes 75 seconds, given that both timeouts are set to 10.
Subject: Re: [rt.cpan.org #17596] Timeouts don't seem to work
Date: Mon, 13 Feb 2006 13:19:27 +0100
To: bug-Net-DNS-SEC [...] rt.cpan.org
From: "Olaf M. Kolkman" <olaf [...] dacht.net>
Hi Paul, I fail to reproduce this with the code that currently lives on the subversion trunk : http://www.net-dns.org/svn/net-dns/trunk Worked Before the bad: Mon Feb 13 13:09:33 2006 Failed After the bad: Mon Feb 13 13:09:43 2006 The 'trunk' version did see some changes to the way AXFR treats its sockets (also see ttp://www.net-dns.org/svn/net-dns/trunk/Changes) Would you be willing to get the code from the trunk and see if the problem still occurs. svn co http://www.net-dns.org/svn/net-dns/trunk net-dns-trunk should do. --Olaf On Feb 12, 2006, at 7:01 PM, Guest via RT wrote: Show quoted text
> $res=Net::DNS::Resolver->new(nameservers=>[('63.249.108.169')]); > $res->tcp_timeout(10); $res->udp_timeout(10); > $Now = localtime; print "Before the good: $Now\n"; > @TheGoodAXFR = $res->axfr('test.proper.com'); > if(@TheGoodAXFR) { print "Worked\n" } else { print "Failed\n" }; > $res=Net::DNS::Resolver->new(nameservers=>[('5.6.7.8')]); > $res->tcp_timeout(10); $res->udp_timeout(10); > $Now = localtime; print "Before the bad: $Now\n"; > @TheBadAXFR = $res->axfr('bogus.proper.com'); > if(@TheBadAXFR) { print "Worked\n" } else { print "Failed\n" }; > $Now = localtime; print "After the bad: $Now\n";
------------------------------------------------------ Ik dacht net... heel even maar.
Download PGP.sig
application/pgp-signature 227b

Message body not shown because it is not plain text.

Closing the ticket. I failed to reproduce the bug on the development trunk. That code has now been released. If the problem is still there then please re-open the ticket. --Olaf