Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Frontier::Client - timeout?

by DreamT (Pilgrim)
on Feb 19, 2013 at 12:55 UTC ( #1019542=perlquestion: print w/replies, xml ) Need Help??
DreamT has asked for the wisdom of the Perl Monks concerning the following question:


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;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1019542]
Approved by Ratazong
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2017-11-20 01:33 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (282 votes). Check out past polls.