curl-library
Re: fflush()ing libcurl's FILE* for the file:// protocol...
Date: Thu, 4 Oct 2012 23:48:56 +0200
On Wed, Oct 03, 2012 at 02:46:18PM +0200, Sebastian Rasmussen wrote:
> So therefore I propose that a new return value for READFUNCTION is
> added which instructs libcurl to call fflush() on the FILE*, thereby
> forcing the data to the file system. Does anyone have any opinion on
> this? Also does this draft patch adhere to the design philosophy of
> libcurl? I'm happy to improve my draft patch to a state where it can
> be included, so I'd really like you review comments and opinions. :)
I think a much more straightforward approach would be simply to have a
CURLOPT that sets unbuffered mode for the FILE object (i.e. calls
setbuf() with no buffer given).
>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-10-04