develooper Front page | perl.libwww | Postings from March 2014

Re: Timeout in LWP::Protocol::http

Thread Previous
From:
Michiel Beijen
Date:
March 7, 2014 10:56
Subject:
Re: Timeout in LWP::Protocol::http
Message ID:
CABD0r11zs92MbqqYcLWn6UqADErQ7=8gDAeAEyc-q=JsNgDPBA@mail.gmail.com
Hi Vladimir,

On Fri, Mar 7, 2014 at 8:48 AM, Vladimir Levijev
<vladimir.levijev@gmail.com> wrote:
> 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?

It's easy:

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

--
Mike

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About