http://www.perlmonks.org?node_id=1019542

DreamT has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

2 short questions regarding Frontier::Client:
1. Is it possible to set the timeout for Frontier::Client?
2. What is the default timeout? Googling on it indicates that it depends on LWP::UserAgent, which has the default of 180 seconds, but I can't find any definitive answer.

Replies are listed 'Best First'.
Re: Frontier::Client - timeout?
by Anonymous Monk on Feb 19, 2013 at 13:05 UTC
      Frontier::Client is based on LWP::UserAgent and you can set the timeout through the ua instance:
      $cl = Frontier::Client->new( 'url' => $url, ); $cl->{'ua'}->timeout($timeout_secs) if $timeout_secs;