[Haskell-cafe] whatever happened to sendFile?

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Thu Aug 14 11:34:46 EDT 2008


On 2008 Aug 14, at 2:28, Ketil Malde wrote:
> "Brandon S. Allbery KF8NH" <allbery at ece.cmu.edu> writes:
>> Your previously stated use case sounds like a good fit.  I can easily
>> imagine sendfile() implementations starving other network operations,
>> though (and IIRC linux's early sendfile() implementation did so).
>> It's essentially an optimization specific to web servers.
>
> Isn't it superseeded by splice(2) nowadays?


Most Unixen have some version of sendfile(); how portable is  
splice()?  (Of course, there could be a system-dependent mapping; one  
is needed for Windows already.)

-- 
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH




More information about the Haskell-Cafe mailing list