cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: CURLOPT_BUFFERSIZE bytes or block ?

From: <delphine.menjikoff_at_orsyp.com>
Date: Tue, 13 Sep 2005 09:57:00 +0200

Ok,
Thanks for your answers!
In fact, in the doc, it is not specified that the CURLOPT_BUFFERSIZE is a bytes value.

Thanks a lot.

Delphine.

-----Message d'origine-----
De : curl-library-bounces_at_cool.haxx.se [mailto:curl-library-bounces_at_cool.haxx.se] De la part de Daniel Stenberg
Envoyé : lundi 12 septembre 2005 22:32
À : libcurl development
Objet : Re: CURLOPT_BUFFERSIZE bytes or block ?

On Mon, 12 Sep 2005, delphine.menjikoff_at_orsyp.com wrote:

> 1. The CURLOPT_BUFFERSIZE can increase the speed transfer?

No, why would it?

> Because, I don't see any improvement when I use this option.

There's nothing that says it would, is it? The docs says

   "The main point of this would be that the write callback gets called more
    often and with smaller chunks"

> 2. I want to know what is the unit of CURLOPT_BUFFERSIZE option?
>
> Because I always initialized this option with a bytes value.
>
> It's right to use it with bytes value or block value?

Bytes it is. I should clarify this in the docs.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-09-13