cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl with sendfile

From: Jamie Lokier <jamie_at_shareable.org>
Date: Mon, 10 Mar 2008 21:37:10 +0000

Brian McQueen wrote:
> Yes, I mean downloads, from socket to disk. I thought I could connect
> any two file descriptors, wether it be one is to a socket or one is to
> a disk. For now it doesn't matter anyway, I'll need to go ahead with
> making my own large write buffer and filling it up.

The latest Linux kernels can connect descriptors both ways, using
splice (not sendfile). But I really wouldn't recommend it.

If your problem needs larger write buffers, splicing will probably
make it worse rather than better.

-- Jamie
Received on 2008-03-10