curl-library
Re: ftpget.c example error
Date: Wed, 28 Mar 2012 12:59:13 +0200
"Avi Manor" <amanor_at_Airspan.com> wrote:
Please don't post in html. It's messy to format a sensible reply in html.
> While testing this example I have noticed that every call to my_fwrite comes with size = 1.
> This is the reason why the error is unnoticeable. However, it is not guaranteed to
> get every call with size = 1.
Why not? AFAICS, 'data->set.fwrite_func()' is always called with 'size=1'.
Ref. sendf.c line 456. Can you figure out where your callback is called
from? And on what OS and libcurl version do you see this behavior?
--gv
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-03-28