Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Timeout in LWP::Protocol::http

6 views
Skip to first unread message

Vladimir Levijev

unread,
Mar 7, 2014, 2:48:28 AM3/7/14
to lib...@perl.org
Hi,

We need to specify io_socket_timeout option (10 seconds is too small
for us) in /usr/share/perl5/LWP/Protocol/http.pm . Do you know of any
way to accomplish that?

Cheers,

VL

Michiel Beijen

unread,
Mar 7, 2014, 5:56:02 AM3/7/14
to Vladimir Levijev, Libwww Mailling List
Hi Vladimir,
It's easy:

my $ua = new LWP::UserAgent;
$ua->timeout(20);

--
Mike
0 new messages