cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Re: Bug in the multi interface? (curl_multi_wait returns 0)

From: Clemens Gruber <clemens.gruber_at_pqgruber.com>
Date: Fri, 15 Feb 2013 15:05:17 +0100

Hello Daniel,

I created an example, which reproduces the problem:
https://gist.github.com/clemensg/4960504

With libcurl 7.28.1, it works as expected, but with 7.29.0,
curl_multi_wait sets numfds to 0 and the URLs don't get fetched.

I hope, someone will find the bug (either in my code or in the libcurl
code base ;)
Thanks for your help.

Regards,
Clemens Gruber

> Message: 1
> Date: Tue, 12 Feb 2013 16:29:12 +0100 (CET)
> From: Daniel Stenberg <daniel_at_haxx.se>
> To: libcurl development <curl-library_at_cool.haxx.se>
> Subject: Re: Bug in the multi interface? (curl_multi_wait returns 0)
> Message-ID: <alpine.DEB.2.00.1302121625170.32532_at_tvnag.unkk.fr>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
> On Fri, 8 Feb 2013, Clemens Gruber wrote:
>
>> I am using libcurl on Windows (MSVC2010) and I use the multi interface to
>> download several files via HTTPS. Up to 7.28.1, everything worked perfectly.
>> Today, I upgraded to curl 7.29.0 and just after the update my
>> multi-interface code does not work anymore :/ (But all my other curl_easy
>> connections, without the multi interface, do work!) I read in the release
>> notes that there were some changes. Did you test the code after the changes
>> under Windows or did you change some of the interfaces, especially with
>> curl_multi_wait?
>
> We did 260 commits between 7.28.1 and 7.29.0. We have a large user base on
> Windows that I rely on occasionally tests stuff. It doesn't rule out that we
> might have a bug somewhere and I wouldn't be so sure that the problem you see
> is windows-only... We don't really have anything that is specific to windows
> in curl_multi_wait.
>
>> The function curl_multi_wait() returns 0, whereas in the previous release
>> 7.28.1 it worked as expected.
>>
>> I am using the Curl Multi interface as specified in the docs and examples.
>> Mostly after this example: http://curl.haxx.se/libcurl/c/10-at-a-time.html
>> But instead of doing the file descriptor handling myself, I use
>> curl_multi_wait, but as far as I know, this is the recommended way, isn't
>> it?
>
> Can you please be even more specific and post a complete example that repeats
> the problem for you?
>

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