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: http://kerneltrap.org/node/6505.

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 is funded by Corsis Research and used in:

PortFusion ]-[ayabusa – German research project for building the simplest high-performance distributed reverse / forward proxy.

https://sourceforge.net/p/portfusion/wiki/RoadMap/


Properties

Versions0.1, 0.2, 0.3, 0.3.1, 0.3.2, 0.4, 0.5, 0.5.1, 0.6, 0.6.0.2, 0.6.1, 0.6.1.1
Dependenciesbase (>=4 && <=6), network (>=2 && <=4)
LicenseBSD3
CopyrightCopyright © 2012 Cetin Sert
AuthorCetin Sert <fusion@corsis.eu>
MaintainerCetin Sert <fusion@corsis.eu>
Stabilitystable on Linux, experimental on other operating systems
CategoryNetwork
Home pagehttp://fusion.corsis.eu
Upload dateWed Apr 11 03:23:56 UTC 2012
Uploaded byCetinSert
Downloads868 total (86 in last 30 days)

Modules

[Index]

Flags

NameDescriptionDefault
portableexplicitly enable portable splice implemented in HaskellDisabled

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

Downloads

Maintainers' corner

For package maintainers and hackage trustees