cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: hang on curl_easy_perform when network cable is unplugged and plugged

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Sat, 12 Nov 2011 11:04:30 -0800

On Sat, Nov 12, 2011 at 09:19:43PM +0400, Се?гей ?и?клов wrote:
> I use curl 7.19.7 and have faced with the following problem: when I download
> data from a http server and unplug network cable curl stops downloading - its
> ok, but when I plug cable curl resumes downloading after some time or doesn't
> and as result program hangs on curl_easy_preform.
>
> If I unplug cable for serveral seconds curl resumes downloading, but if I
> unplug for > 1 min curl does not resume. Connection timeout set to 3 secs.

The connection timeout doesn't have any effect once the connection has
been made.

> Why curl does not resume downloading in that moment when cable was plugged?

http://curl.haxx.se/docs/faq.html#Why_doesn_t_cURL_return_an_error

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-11-12