simple-sendfile

Cross platform library for the sendfile system call

LTS Haskell 24.69:0.2.33
Stackage Nightly 2026-11-30:0.2.34
Latest on Hackage:0.2.34

See all snapshots simple-sendfile appears in

BSD-3-Clause licensed and maintained by Kazu Yamamoto
This version can be pinned in stack with:simple-sendfile-0.2.34@sha256:8dc2e61bca02ab1522ee1bb4c482b587c5308ec6dcb9ba30f37c098d8726b2aa,2749

Module documentation for 0.2.34

Used by 1 package in nightly-2026-11-30(full list with versions):

Cross platform library for the sendfile system call. This library tries to call minimum system calls which are the bottleneck of web servers.

Changes

ChangeLog for simple-sendfile

0.2.34

  • Add give-up variants: sendfileWith and friends #54

0.2.33

GHC 9.2 or later is required.

  • Don’t send the entire file for zero-length ranges on BSD/macOS #43
  • Fallback: open the file before sending the header #44
  • Reject negative offsets and lengths in FileRange #45
  • Fix the header path of BSD/macOS (IOV_MAX, EINTR, hook) #47
  • Linux: open the file before the header, handle EINTR and 64-bit off_t #48
  • Document how FileRange is handled #49
  • Add FreeBSD to CI and fix BSD error messages #50