cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 7 Oct 2012 22:41:06 +0200 (CEST)

On Fri, 5 Oct 2012, Sebastian Rasmussen wrote:

>> I personally rather lean on simply changing the output to unbuffered
>> unconditionally and always and instead rather have us rely on the file
>> system layer doing the right thing. That would be completely backwards
>> compatible too!
>
> 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()!

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-10-07