curl-library
Re: fflush()ing libcurl's FILE* for the file:// protocol...
Date: Sun, 7 Oct 2012 22:19:22 +0200
On Sun, Oct 07, 2012 at 01:06:15AM +0200, Sebastian Rasmussen wrote:
> > If it's truly needed, then sync() could always be called in the
> > application's write callback that occurs immediately after the file
> > write.
>
> Now I'm not following your reasoning. What write callback?
Sorry, I meant the read callback. Right after the fwrite() completes,
the read callback is called again for more data. The progress callback
could be used to, but that's rate limited.
> Ok, I'll take a look at this on monday and see if I can figure out
> how this works and see if I can do something based on test 513.
> Thanks for the pointer, without it I would have been forever lost
> looking at the vast test code!
I hardly ever write a new test from scratch. Cutting-and-pasting from
the nearest existing test case saves so much writing boilerplate!
>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-10-07