in reply to Re^2: WWW::Mechanize timeout problem
in thread WWW::Mechanize timeout problem
You could also try an event library like Mojo::IOLoop or AnyEvent or IO::Async with a matching event-based user agent like Mojo::UserAgent, AnyEvent::UserAgent, or Net::Async::HTTP. These involve re-writing your script significantly, but then you have all the benefits of event-driven programming at your fingertips, and a timeout is super-easy.
|
|---|