You can set timeout by passing timeout parameter to WWW::Mechanize->new. But if you have to process a lot of URLs it is better to perform several requests in parallel. You may do this using threads or using something like AnyEvent::HTTP (I personally prefer the later).
In reply to Re: $mechanize->get($url) connexion timeout stalls my script
by zwon
in thread $mechanize->get($url) connexion timeout stalls my script
by mnem00
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |