simple-sendfile

Cross platform library for the sendfile system call

LTS Haskell 24.66:0.2.33
Stackage Nightly 2026-11-03:0.2.32
Latest on Hackage:0.2.33

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.33@sha256:7630386f4bdaac27f20dc0a143798ffa0a5927e05ee5449abdd2b813a4ada515,2735

Module documentation for 0.2.33

Used by 1 package in lts-24.66(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.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