Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^2: WWW::Mechanize Timeout period

by alexm (Chaplain)
on Jul 27, 2009 at 22:54 UTC ( #783689=note: print w/ replies, xml ) Need Help??

in reply to Re: WWW::Mechanize Timeout period
in thread WWW::Mechanize Timeout period

I've successfully tested that the timeout option used in WWW::Mechanize::new works as expected for me.

DB<1> use WWW::Mechanize DB<2> $mech = WWW::Mechanize->new (timeout=>300) DB<3> x $mech->get ('') Error GETing Can't connect to (co +nnect: No route to host) at (eval 35)[/usr/share/perl/5.10/ +:638] line 2 DB<4> x $mech->timeout 0 300 DB<5> x $mech->timeout(1) 0 300 DB<6> x $mech->timeout 0 1 DB<7> x $mech->get ('') Error GETing Can't connect to (co +nnect: timeout) at (eval 40)[/usr/share/perl/5.10/] lin +e 2

Note the difference in error message reported.

Comment on Re^2: WWW::Mechanize Timeout period
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2015-11-25 13:33 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (675 votes), past polls