cURL / Mailing Lists / curl-users / Single Mail

curl-users

libcurl time out issue

From: <anoopchandran.othayoth_at_wipro.com>
Date: Wed, 25 Mar 2009 11:34:08 +0530

Hi All

            This problem is related to timeout of libcurl.

Description:

While downloading a file from a server (say server A) to an another
server (say server B), when download is in progress if we reboot server
A , server B which is in between the download operation don't get any
acknowledgement saying operation is stopped or aborted. So server B
waits infinitely and never comes out of the download operation.

The option which I thought is about CURLOPT_TIMEOUT, But this works if
the download operation takes longer duration than the time specified in
curl_easy_opt() with CURL_TIMEOUT as parameter then will abort the
operation right.

 

Is there any option to abort the operation when the remote machine goes
down?

Any comments appreciated

 

operating system: Linux 3 2.6.11-1.1369_FC4

version of curl: 4.1.1

 

 

Regards

Anoop.

Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-03-25