Strange timeout with LWP::Simple::get

P

Paul E Collins

I'm using POE::Component::IRC and LWP::Simple in the same Perl script
(an IRC bot that retrieves information from Web pages). It runs under
ActiveState Perl v5.6.1 on Windows XP.

LWP::Simple::get works just fine in simple test scripts, but when I
use it in the bot it invariably times out. This is particularly
mystifying because the same code worked about a year ago.
(Unfortunately, I don't know what versions of Perl and the libraries I
was using at the time.)

It's not a DNS problem, because it still happens when I use an IP
address instead of a URL; and it's not a scoping problem, because it
still happens when I replace 'get' with 'LWP::Simple::get'. But
evidently something in the bot script is stopping LWP::Simple from
working.

Are there any known bugs that might explain this? What else might be
wrong?

P.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,981
Messages
2,570,188
Members
46,732
Latest member
ArronPalin

Latest Threads

Top