cURL / Mailing Lists / curl-library / Single Mail

curl-library

curl_multi_perform returns CURLM_OK even if the easy handle connection is failed

From: Pingzhong Li <PLi_at_fiberlink.com>
Date: Fri, 3 Aug 2012 15:31:48 -0400

Hi, expert,

We are using multi handle which wraps one easy handle. The connection is over proxy, however the proxy connection was rejected by proxy server. So when I debug the code, I could see the connection for easy handle is failed, however the curl_multi_perform still returns CURLM_OK in this case and I confirmed that from the API doc from http://curl.haxx.se/libcurl/c/curl_multi_perform.html:
=================
This function only returns errors etc regarding the whole multi stack. Problems still might have occurred on individual transfers even when this function returns CURLM_OK.

So at this case, what should we do then? How can I read the failure information for easy handle at this case? Somehow I didn't find one API for this.

Thanks,
Pingzhong

________________________________
Fiberlink Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-08-03