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 (Pilgrim) 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).