cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Multithreaded use of libcurl

From: doa379 <doa379_at_gmail.com>
Date: Fri, 18 Sep 2015 11:47:59 +0100

On 18/09/15 01:22, Aaron Meriwether wrote:
>
>> On Sep 17, 2015, at 1:06 PM, doa379 <doa379_at_gmail.com> wrote:
>>
>> I think my issue has resolved itself by putting in a delay to some of the operations in the threads.
>
> If you use delays to "fix" a bug in a threaded program, you are doing it wrong, and the bug will almost certainly resurface later to bite you.
>
> -Aaron
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>

On 18/09/15 05:53, Ray Satiro via curl-library wrote:
>
> That doesn't sound right. I think your solution is possibly covering up
> a problem with the design of your program.
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html

The program follows this example:

http://softpixel.com/~cwright/programming/threads/threads.c.php
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-09-18