The Snap team is pleased to announce the release of Snap 0.2.11. Most of the changes since 0.2.9 are bugfixes and testing improvements.
Changes since 0.2.9
Fix an iteratee bug in
enumLBSregarding incorrect eof handling.
Normally when enumerating a file (and not using
sendfile()), Snap uses
mmap()to get the file data, saving a copy. Enumerating a large file could exhaust address space on 32-bit systems, however, so for files larger than 40MB Snap will now use
Fixes to support
A fix for the “
error.logspamming bug” (wherein snap would spew thousands of spurious error messages to the error log upon exit).
Snap now handles
We are now exporting a new function
setResponseCodeto set the reponse status code and message together using a lookup table, rather than forcing you to input the status message yourself.
Architecture-specific hash function is now selected via template haskell.
Tweaks to the date thread to prevent blocking when computing the current time.