For example:
my $ua = LWP::UserAgent->new; $ua->timeout(3); # Sets a three-second timeout
By default, this timeout method is set to 180 seconds (3 minutes) - This is described in the LWP documentation. Additionally, the use_alarm method can be used to set/get a value indicating whether to use alarm when implementing timeouts - This is useful if you make use of alarm elsewhere in your applications.
perl -e 's&&rob@cowsnet.com.au&&&split/[@.]/&&s&.com.&_&&&print'
In reply to Re: Problems trying to timeout LWP requests
by rob_au
in thread Problems trying to timeout LWP requests
by cheshirecat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |