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

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:

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;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1019542]
Approved by Ratazong
help
Chatterbox?
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
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (282 votes). Check out past polls.

    Notices?