Oh thanks. Anticipating the timeout declaration to:
my $ua = LWP::UserAgent->new; $ua->timeout(0.1); my $req = HTTP::Request->new(GET => $url); my $res = $ua->request($req);
makes it work. However, the idea to make it async is for sure a better idea. I'll give it a try.
In reply to Re^2: LWP::UserAgent timeout
by IB2017
in thread LWP::UserAgent timeout
by IB2017
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |