Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: LWP::UserAgent timeout

by talexb (Canon)
on Dec 17, 2018 at 14:35 UTC ( #1227354=note: print w/replies, xml ) Need Help??

in reply to LWP::UserAgent timeout

I use LWP::UserAgent::Determined to retry my API calls when they fail. The standard retry intervals for this module are 1, 3 and 15 seconds -- that wasn't enough for my situation, so I made mine 10, 20, 30, 60, 60, 60, 90, and 90 seconds. My preference is to "Get it done .. eventually." rather than "Get it done as quickly as possible." Your situation may be different.

Alex / talexb / Toronto

Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

Replies are listed 'Best First'.
Re^2: LWP::UserAgent timeout
by IB2017 (Monk) on Dec 17, 2018 at 17:49 UTC

    Thank you for your comment. In my particular case, I simply prefer to "go on" without retrying if there is a connection problem. It is just the app automatically check if an update is available. If this check cannot be done, it does not matter. It will retry at a later stage (typically when the app is started again). What I do not want it is freezing the app while trying and trying again (as I do not use - unfortunately - any non-blocking mechanisms).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1227354]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2019-07-20 03:28 GMT
Find Nodes?
    Voting Booth?

    No recent polls found