packages feed

sendfile 0.6.1 → 0.6.2

raw patch · 2 files changed

+3/−3 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

sendfile.cabal view
@@ -1,5 +1,5 @@ name:          sendfile-version:       0.6.1+version:       0.6.2 stability:     provisional synopsis:      A portable sendfile library description:   A library which exposes zero-copy sendfile functionality in a portable way. If a platform does not support sendfile, a fallback implementation in haskell is provided.@@ -9,7 +9,7 @@ license:       BSD3 license-file:  LICENSE author:        Matthew Elder <matt@mattelder.org>-maintainer:    Matthew Elder <matt@mattelder.org>+maintainer:    Jeremy Shaw <jeremy@n-heptane.com> homepage:      http://patch-tag.com/r/mae/sendfile category:      Network build-type:    Simple
src/Network/Socket/SendFile/Darwin.hsc view
@@ -51,7 +51,7 @@             if errno == eAGAIN               -- is it correct to reduce bytes by nsent here?               then let nremaining = max 0 (bytes - (fromIntegral nsent))-                   in sendfile out_fd in_fd pbytes off nremaining (ctr + (fromIntegral nsent))+                   in sendfile out_fd in_fd pbytes (off + nsent) nremaining (ctr + (fromIntegral nsent))               else throwErrno "Network.Socket.SendFile.Darwin"  -- max num of bytes in one send