cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

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

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET