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;