cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: cURL bug -- Segmentation Fault when timeout is 1 second

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Wed, 04 Feb 2009 07:08:32 +0100

> ... * snip *
>>
>> string buffer;
>> curl_easy_setopt(curl, CURLOPT_WRITEDATA, &buffer);
> .... * snip *
>>
>> http_call();
>> sleep(2);
>

Daniel Marschall <info_at_daniel-marschall.de> wrote:

> No, I cannot see what could be wrong there. I call the URL and wait 2 seconds.

At first look it seemed you were using a variable on stack in a
global scope (while sleep() is running). But as Daniel saids, you
cannot pass a 'std::string' to CURLOPT_WRITEDATA.

--gv
Received on 2009-02-04