curl-library
Re: Some questions about CURL
Date: Tue, 1 Oct 2013 15:33:05 -0700
Hi,
Yup that answers my questions. I'm on CURL 7.19.7 (and thus have to make
use of CURL_CALL_MULTI_PERFORM). Just one more thing, so what happens to
the callback function now, Does it receive the data in a single call now
(i.e. till CURLM_OK) rather than callback getting called every time for
curl_multi_perform ?.
Thanks for the response.
Thanks
Sunny
On Tue, Oct 1, 2013 at 3:11 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Tue, 1 Oct 2013, Sunny Khatri wrote:
>
> 1. What's the effect of not calling curl_multi_perform immediately again,
>> even though if it returns CURLM_CALL_MULTI_PERFORM ? What impact or
>> exceptions it can cause.
>>
>
> You're slowing down the transfer. But we ditched the
> CURLM_CALL_MULTI_PERFORM return code a long time ago and only libcurls
> before 7.20.0 ever returns that.
>
>
> 2. What is the Significance of max_fd = 0 set by curl_multi_fdset. Any
>> special considerations ?
>>
>
> max_fd = 0 is no special case really, it just means that a single file
> descriptor is in use: 0.
>
> max_fd = -1 however, is a special case and it is quite clearly documented:
> http://curl.haxx.se/libcurl/c/**curl_multi_fdset.html<http://curl.haxx.se/libcurl/c/curl_multi_fdset.html>
>
> Or do you have questions left after reading that?
>
> --
>
> / daniel.haxx.se
> ------------------------------**------------------------------**-------
> List admin: http://cool.haxx.se/list/**listinfo/curl-library<http://cool.haxx.se/list/listinfo/curl-library>
> Etiquette: http://curl.haxx.se/mail/**etiquette.html<http://curl.haxx.se/mail/etiquette.html>
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-10-02