develooper Front page | perl.libwww | Postings from December 2000

timeouts not working

Andrew Daviel
December 28, 2000 14:51
timeouts not working
Message ID:

I'm slowly converting some robot code from Perl4 to Perl5 
(well, I thought I had done it but some things still aren't right)

I am currently trying to run on a RedHat 6.2 Linux system
which I believe comes with perl-5.00503-12 installed with RPM.

I have just installed libwww-perl-5.48 having previously been trying

Basically, the problem is that timeouts don't work.

I have some test code more-or-less like:
  $url = new URI::URL $url ;
  $ua = new LWP::UserAgent;
  $request = new HTTP::Request 'HEAD';
  $response = $ua->request($request);

I have chased this down through as far as

587:                $fh->connect($rport,$raddr) or
588:                    return _error($fh,"$!");

which appears to eventually timeout with a much longer timeout (many

Also, it seems that any alarm handler I set up myself is also

Is this some weird one-off thing on my system, or a problem
in perl-5.00503-12 ?
I confess I don't quite undertand as connect() seems
to be recursive and do nothing.

Andrew Daviel Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About