cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Re: libcurl/ download buffer size is different to upload buffer size.

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 4 Feb 2015 14:56:26 +0100 (CET)

On Thu, 29 Jan 2015, Keonwoo Kim wrote:

>> The receive buffer is always the same 16KB size unless you rebuild libcurl
>> with a custom size. And it doesn't matter how fast you download things,
>> libcurl uses the same buffer (size).
>
> I tried to rebuild libcurl with a custom buffer size. but receive
> buffer(size * nmemb) is too small..(1300 ~ 1400 bytes)

You're missing my point: libcurl will fill it if there's just enough data
there to fill it up with. Not filling it completely indicates there isn't.

> I just used callback function in libcurl official page (getinmemory.c

Hm, yeah that shouldn't be terribly slow unless you download very large
contents...

> Isn't it a libcurl problem? but server-side problem, network environment or
> ...

I don't think it is a libcurl problem, but I can't tell for sure.

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