cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Libcurl hangs at Curl_splay()

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 21 Aug 2013 23:36:19 +0200 (CEST)

On Wed, 21 Aug 2013, sachin dravid wrote:

> I am using 7.25 libcurl version.

Then please use the curl-library mailing list instead! I've cc'ed this
response over there. Please take follow-ups on that list!

> Issue
> ======
> My program is getting hang in Curl_splay() under curl_multi_perform().
>
> Program overview
> ==============
> I am using HTTP PUT requests. I have a global CURLM handle.
> I have a producer (main) thread, and it does curl_multi_add_handle.
> There is one consumer thread which continuously doing curl_multi_perform.
> I have put mutex around all functions using CURLM handle.
>
> I am not getting this issue every time. It appears intermittently.

Problems in that function usually means that you have messed up the mutexing
so that multiple threads are racing to use libcurl with the same handle(s), or
that you have some memory problems and have destroyed some data structures
that libcurl uses.

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