curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Using CURLOPT_LOW_SPEED_LIMIT to detect a stalled request

From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Fri, 5 Oct 2018 09:56:24 +0200 (CEST)

On Fri, 5 Oct 2018, Rory McCarthy wrote:

> Looking at the debug output, all the data transfers in less than a second at
> a transfer speed in the 100's MB/s. It then stalls completely while waiting
> for a response for 6-7 seconds before timing out. Subsequent retries are
> able to complete in a reasonable time, so being able to time out sooner is
> key.

That sort of situation are among the most complicated ones to solve with a
generic approach I think.

> Thanks for confirming that CURLOPT_LOW_SPEED_LIMIT is compared against the
> average transfer rate. Would you accept a PR against the docs
> for CURLOPT_LOW_SPEED_LIMIT explaining this?

Yes, I love getting docs improvements!

I'd object to "average transfer rate" though. It is the "average transfer rate
during the previous 5 seconds", which is quite a big difference in my opinion.

-- 
  / daniel.haxx.se

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-10-05