Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 47769
Status: resolved
Priority: 0/
Queue: Net-Whois-RIPE

People
Owner: lmc [...] cpan.org
Requestors: ulrich [...] topfen.net
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in:
  • 1.22
  • 1.23
Fixed in: (no value)



Subject: Query times out
I use RPSLTool, which in turn uses Net::Whois::RIPE in persistent connection mode. When querying whois.radb.net or whois.altdb.net for non-existent objects, the server's response is not correctly recognized by Net::Whois::RIPE::Object's parser, and the connection thus hangs until it times out. The attached patch fixes this problem by modifying the regex to also recognize "% No entries found for the selected source(s)." as an error.
Subject: radb-error.patch
--- a/lib/Net/Whois/RIPE/Object.pm 2006-04-17 21:07:14.000000000 +0200 +++ b/lib/Net/Whois/RIPE/Object.pm 2009-07-10 08:54:19.000000000 +0200 @@ -71,7 +71,7 @@ } /^The object shown below is NOT in the/ and $self->_err($_); - /^\% No entries found\./ and $self->_err('No entries found'); + /^\%\s+No entries found/ and $self->_err('No entries found'); /^\%ERROR:(.*)/ and $self->_err($1), next; /^%/ and next; # skip server comments /^\n$/ and $found_record and last;
Subject: Re: [rt.cpan.org #47769] Query times out
Date: Fri, 10 Jul 2009 12:19:27 +0200
To: bug-Net-Whois-RIPE [...] rt.cpan.org
From: Luis Motta Campos <luismottacampos [...] yahoo.co.uk>
Ulrich Zehl via RT wrote: Show quoted text
> Fri Jul 10 06:04:41 2009: Request 47769 was acted upon. > Transaction: Ticket created by grmpfl > Queue: Net-Whois-RIPE > Subject: Query times out > Broken in: 1.22, 1.23 > Severity: Important > Owner: Nobody > Requestors: ulrich@topfen.net > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=47769 > > > > I use RPSLTool, which in turn uses Net::Whois::RIPE in persistent > connection mode. > > When querying whois.radb.net or whois.altdb.net for non-existent > objects, the server's response is not correctly recognized by > Net::Whois::RIPE::Object's parser, and the connection thus hangs until > it times out. > > The attached patch fixes this problem by modifying the regex to also > recognize > "% No entries found for the selected source(s)." > as an error. >
Hi, Ulrich Zehl. Thanks for your bug report, and thank you very much for your patch. I will apply it as soon as possible and release a new version of Net::Whois::RIPE soon. Cheers! -- Luis Motta Campos is a software engineer, Perl Programmer, foodie and photographer.