cURL cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1405 uninitialization of curl library is not proper, It got hangs sometimes

From: Ravi Bhuva <ravibhuva_at_users.sf.net>
Date: Wed, 06 Aug 2014 06:50:04 +0000

---
** [bugs:#1405] uninitialization of curl library is not proper, It got hangs sometimes**
**Status:** open
**Created:** Wed Aug 06, 2014 06:50 AM UTC by Ravi Bhuva
**Last Updated:** Wed Aug 06, 2014 06:50 AM UTC
**Owner:** nobody
Hello,
I am using curl 0.7.24 library and it is got stuck sometimes during Un-initialization of curl library. Here i 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.
---
Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2014-08-06

These mail archives are generated by hypermail.