cURL / Mailing Lists / curl-library / Single Mail

curl-library

curl library's uninitialization is got hang

From: shine <shineinsky343_at_gmail.com>
Date: Wed, 06 Aug 2014 12:24:45 +0530

Hello,

I am using curl 0.7.24 library and it is got stuck sometimes during
Un-initialization. Here below i wrote how i am doing curl lib init and
de-init process:

Init:
do
{
     if (CURLE_OK != (res = curl_global_init(CURL_GLOBAL_ALL)))
     {
         iReturnVal = -1;
         break;
     }
     curl = curl_easy_init();
     if (!curl)
     {
         iReturnVal = -1;
         break;
     }
}while(0);

De-Init:
if (NULL != curl)
{
     curl_easy_cleanup(curl);
     curl = NULL;
}
curl_global_cleanup();

Some other function i am using are curl_easy_reset, curl_easy_setopt,
curl_easy_perform.

If this bug is already resolved then please provide me some patch for
that and if not then if you want any further detail how i am doing all
curl operation then please let me know.

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