in reply to Problems trying to timeout LWP requests
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'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Problems trying to timeout LWP requests
by tomhukins (Curate) on Feb 06, 2002 at 12:43 UTC | |
by Anonymous Monk on Feb 06, 2002 at 14:32 UTC | |
|
Re: Re: Problems trying to timeout LWP requests
by cheshirecat (Sexton) on Feb 06, 2002 at 12:47 UTC |