cURL / Mailing Lists / curl-library / Single Mail

curl-library

inactivity timeout on Win2k

From: <RBramante_at_on.com>
Date: Wed, 17 Dec 2003 12:37:56 -0500

I am trying to implement an "inactivity timeout" for transfers on Win2k.

I am setting:

curl_easy_setopt(h, CURLOPT_LOW_SPEED_LIMIT, 1L);
curl_easy_setopt(h, CURLOPT_LOW_SPEED_TIME, 60L);

Which from the docs I am assuming means: if the transfer rate falls below 1
byte per second for 60 consecutive seconds, abort. (effectively if no bytes
have been received for 60 seconds, correct?)

I start a transfer and then I unplug the network cable about half way
through. That was 10 minutes ago and I am still sitting in
curl_easy_perform with no end in site.

As a test I set the limit to some astronomical number than cannot be
achieved and the transfer did abort with an "operation too slow" message.

After several tries I've had no success with the cable unplugged test
though. Any ideas?

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Received on 2003-12-17