cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Always curl_easy_recv functions returns the 16K buffer.

From: Dave Reisner <d_at_falconindy.com>
Date: Thu, 2 Jun 2011 08:24:26 -0400

On Thu, Jun 02, 2011 at 11:16:12AM +0100, Raghavendra Prasad Bilamkar wrote:
> Dear Libcurl Community.
>
>
>
> In our product we are using the libcurl (7.21.1 ) and libssl(1.0.0) to
> download the video contents over https connection.
>
> I observed that even though my supplied buffer length is 64K; every call to
> function “curl_easy_recv” returns only 16K buffer. Why?
>
>
>
> I would like to know how can I control the “curl_easy_recv” buffer value?
> Actually I want to increase it to 64K.
>
>
>
> Any inputs and suggestion from is appreciated.
>
>
>
> Thanks in advance.
>
> Raghu
>

As mentioned by curl_easy_setopt(3), setting the buffer size via
CURLOPT_BUFFERSIZE is treated as a request, not an order. In particular,
you're less likely to have this request granted when _increasing_ the
size of the buffer as you're limited by the sending host on the other
end. This isn't really a limitation of libcurl specifically, but of all
network I/O.

regards,
dave

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