cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl library's uninitialization is got hang

From: shine <shineinsky343_at_gmail.com>
Date: Thu, 28 Aug 2014 12:34:33 +0530

On 8/6/2014 2:22 PM, Dan Fandrich wrote:
> On Wed, Aug 06, 2014 at 12:24:45PM +0530, shine wrote:
>> I am using curl 0.7.24 library and it is got stuck sometimes during
> Do you mean version 7.24.0? That versions is already 2½ years old and has had
> many bug fixes applied in that time. Have you tried the latest version?
>
>> Un-initialization. Here below i wrote how i am doing curl lib init
>> and de-init process:
> In what function does it hang?
>
>> 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.
> A minimal complete, executable source code that exhibits the problem would be
> useful as there isn't much information here. The particular calls you mention
> look fine. But if you still see this problem with curl 7.37.1, first try to
> find out where it's hanging using a debugger as that may provide some clues.
>
>>>> Dan
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
Hello Dan,

As per your suggestion i moved to curl 0.7.37.1 version and right now i
am facing issue as below:
Curl is returning error: 9 (Access denied to remote resource : 9)

Curl Debug prints:
08_28_2014_07:00:04
=> Send header, 0000000007 bytes (0x00000007)
0000: CWD /
08_28_2014_07:00:04
<= Recv header, 0000000037 bytes (0x00000025)
0000: 250 Directory successfully changed.
08_28_2014_07:00:04
=> Send header, 0000000007 bytes (0x00000007)
0000: CWD /
08_28_2014_07:00:05
<= Recv header, 0000000037 bytes (0x00000025)
0000: 250 Directory successfully changed.
08_28_2014_07:00:05
=> Send header, 0000000009 bytes (0x00000009)
0000: CWD EIC
08_28_2014_07:00:06
<= Recv header, 0000000037 bytes (0x00000025)
0000: 250 Directory successfully changed.
08_28_2014_07:00:06
=> Send header, 0000000012 bytes (0x0000000c)
0000: CWD Tester
08_28_2014_07:00:07
<= Recv header, 0000000037 bytes (0x00000025)
0000: 250 Directory successfully changed.
08_28_2014_07:00:07
=> Send header, 0000000012 bytes (0x0000000c)
0000: CWD phase2
08_28_2014_07:00:07
<= Recv header, 0000000033 bytes (0x00000021)
0000: 550 Failed to change directory.
08_28_2014_07:00:07
=> Send header, 0000000012 bytes (0x0000000c)
0000: MKD phase2
08_28_2014_07:00:08
<= Recv header, 0000000040 bytes (0x00000028)
0000: 550 Create directory operation failed.

Can you tell me what are the possible reason for this error.

Under Observation:
UN-initialization of curl library is in observation till today i don't
find any issue of hanging in UN-initialization.

Regards,
Ravi Bhuva.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-08-28