The splice package

[Tags: bsd3, library]

A library that implements efficient socket to socket data transfer loops for proxy servers.

On Linux, it uses the zero-copy splice() system call:

On all other operating systems, it currently falls back to a portable Haskell implementation that allocates a constant-sized memory buffer before it enters an inner loop which then uses hGetBufSome and hPutBuf; this avoids lots of tiny allocations as would otherwise be caused by recv and sendAll functions from Network.Socket.ByteString.

This work has been funded by Corsis Research and is used in PortFusion:


Versions0.1, 0.2, 0.3, 0.3.1, 0.3.2, 0.4, 0.5, 0.5.1, 0.6,, 0.6.1,
Change logNone available
Dependenciesbase (>=4 && <=6), network (>=2 && <=4), unix (>=2 && <=4) [details]
CopyrightCopyright © 2012 Cetin Sert
AuthorCetin Sert <>
MaintainerCetin Sert <>
Stabilitystable on Linux, experimental on other operating systems
Home page
UploadedTue Apr 10 19:55:40 UTC 2012 by CetinSert
DistributionsLTSHaskell:, NixOS:, Stackage:
Downloads2066 total (68 in last 30 days)
0 []
StatusDocs uploaded by user
Build status unknown [no reports yet]




portableexplicitly enable portable splice implemented in HaskellDisabledAutomatic

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainers' corner

For package maintainers and hackage trustees