cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl waits indefinitely for data

From: Andre Guibert de Bruet <andy_at_siliconlandmark.com>
Date: Mon, 10 Jan 2011 11:50:48 -0500

On 1/10/2011 10:39 AM, arnuld uttre wrote:
> I am using libcurl API in software I am building for my employer. I am
> using libcurl to execute a PHP script on LAN and get some data back
> (using CURLOPT_URL). PHP script sends back some data which I save
> using a code almost identocal to this:
>
> http://curl.haxx.se/libcurl/c/getinmemory.html
>
> libcurl saves data fine almost 99.9% of the time but on very rare
> occasions it waits for infinite amount of time and never returns from
> there. Somtimes it runs fine for 4 days and then goes into infinite
> wait condition like I mentioned. I have to wait for 2-4 days to
> reproduce the bug. I have 2 threads and both threads use/destroy
> their own curl_easy handles. Its always the case that in one
> particular thread curl stops working. I tried setting
> CURLOPT_NOSIGNAL to 1 and still no luck. Have turned on
> CURLOPT_VERBOSE option and have to wait for 2-4 days to get that
> problem. Posted it because I thought I will get some advice if
> someone already faced this issue.

What version of libcurl are you using? Are you able to reproduce this
behavior with a small program that you can share with the list?

Regards,

-- 
/*  Andre Guibert de Bruet  * 436f 6465 2070 6f65 742e 2042 6974 206a */
/*     Managing Partner     * 6f63 6b65 792e 2053 7973 4164 6d69 6e2e */
/*   GSM: +1 734 846 8758   * 2055 4e49 5820 736c 6575 7468 2e00 0000 */
/* WWW: siliconlandmark.com * C/C++, Java, Perl, PHP, SQL, XHTML, XML */
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-01-10