Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Problems trying to timeout LWP requests

by cheshirecat (Sexton)
on Feb 06, 2002 at 12:47 UTC ( [id://143612]=note: print w/replies, xml ) Need Help??


in reply to Re: Problems trying to timeout LWP requests
in thread Problems trying to timeout LWP requests

I've tried using $ua->timeout(3); and it does not work for me,
this was why I was trying the alarm method.

As for use_alarm, see the code below from UserAgent.pm

# depreciated sub use_eval { shift->_elem('use_eval', @_); } sub use_alarm { Carp::carp("LWP::UserAgent->use_alarm(BOOL) is a no-op") if @_ > 1 && $^W; ""; }

It appears that the documentation is out of date as this method is now depreciated.

Cheers

Cheshire Cat

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://143612]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2024-03-28 20:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found