cURL / Mailing Lists / curl-library / Single Mail


Re: fflush()ing libcurl's FILE* for the file:// protocol...

From: Sebastian Rasmussen <>
Date: Mon, 08 Oct 2012 11:59:27 +0200

>> Alright, how about something along the lines of the attached?
>> Basically I'm adding a CURLOPT_UNBUFFERED_WRITES
> I meant completely without any new setopt. Just modify the code to use
> unbuffered write() functions instead of fwrite()!

Then I misunderstood you completely, sorry about that. :)

Another proposed patch is attached which eliminates the FILE streams,
and it actually reduces the line count too. I've tested this in my case
and for whatever reason I no longer need any fsync()...

Let me know what you think.

  / Sebastian

Received on 2012-10-08