cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: retrieving files by http won't give me the whole file !

From: Pierre Ancelot <eternityos_at_free.fr>
Date: Mon, 15 Nov 2004 20:42:58 +0100

Because
return size * nmemb;

makes me segfaulting.

On Monday 15 November 2004 19:58, Daniel Stenberg wrote:
> On Mon, 15 Nov 2004, Pierre Ancelot wrote:
> > so i make as much threads as i need to and from them, i call libcurl as
> > this:
>
> ...
>
> > return 0;
>
> This makes your write callback return error on each invoke so you'll never
> get it called more than once per thread.
>
> Why don't you return the proper value instead? The number of bytes you took
> care of (which in working cases is the amount of bytes passed in to the
> function).
Received on 2004-11-15