curl-library
Re: Reciving buffer size less than CURL_MAX_WRITE_SIZE
Date: Fri, 21 Dec 2012 13:32:42 +0100 (CET)
On Fri, 21 Dec 2012, ilavarasan M wrote:
> I'm using the latest version 7.28.1 to download the files. Im trying to
> download the file which is 60 GB in size using cURL (C++). I'm able to get
> around 17 GB of content and suddenly cURL come out with return code as
> success and the http response code is 200. I try to debug and found that
> curl comes out when it receiving the buffer size less than 16K in the
> callback function. I'm getting random values like 4K or 13K. I can confirm
> the issue is because of this.
No. That is just another sympthom, not the cause, of the problem. libcurl will
provide you with as much data as it was able to read from the socket.
> Is there any way to fix this?
We don't know what your problem is only based on this. We don't know what the
problem is!
If I were to investigate that problem I'd A) check the server side logs for
when the failure occurs and B) wireshark the network and investigate the TCP
action at the time of the transfer stop.
So curl_easy_perform() returns OK for this transfer? Is that an old-style
HTTP close connection to indicate end of transfer?
> can i set the CURL_MAX_WRITE_SIZE
That's a compile-time value you can alter when you rebuild libcurl, but you
changing that won't fix this problem...
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2012-12-21