When using LWP, if the source is unavailable at the moment, it will try for 60 seconds to access that data. Is there a way to tell LWP to only try for like 10 seconds?
Jan 4, 2000, 11:46 AM
Veteran (1311 posts)
Jan 4, 2000, 11:46 AM
Post #3 of 4
Views: 3030
yeah, where you said to put it but it would just be
$ua->timeout([10]);
or
$sec = 10;
$ua->timeout([$sec]);
since the default time of $secs in UserAgent.pm is like over 100 seconds.
------------------
LookHard Search
lookhard.hypermart.net
Lavon Russell
$ua->timeout([10]);
or
$sec = 10;
$ua->timeout([$sec]);
since the default time of $secs in UserAgent.pm is like over 100 seconds.
------------------
LookHard Search
lookhard.hypermart.net
Lavon Russell