I'm making an API request to another server and trying to enforce a hard timeout so I don't stall if the server isn't responsive, or trickles a response back. The timeout I want to use is very short (250ms).
Is it possible to combine LWP::UserAgent with an alarm call to force a timeout? I've tried this but w/o success.
I've also looked at LWPx::ParanoidAgent but in my tests with that I was still able to get a request that took twice as long as my timeout.
I'm hoping Monks can point me in the right direction, surely someone here has run into a similar problem and found the right solution for handling it.
Thanks in advance,
One humble camelobserver
In reply to Hard timeout for LWP::UserAgent or similar by camelobserver
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |