packages feed

warp-systemd 0.1.0.0 → 0.1.1.0

raw patch · 3 files changed

+15/−10 lines, 3 filesdep ~networkdep ~systemdnew-uploader

Dependency ranges changed: network, systemd

Files

CHANGELOG.md view
@@ -1,5 +1,9 @@ # Revision history for warp-systemd -## 0.1.0.0  -- 2019-09-18+## 0.1.1.0 -- 2020-07-09 -* First version. Released on an unsuspecting world.+ * Update `network` package and use `withFdSocket` ([network#399](https://github.com/haskell/network/pull/399))++## 0.1.0.0 -- 2019-09-18++ * First version. Released on an unsuspecting world.
src/Network/Wai/Handler/Warp/Systemd.hs view
@@ -33,7 +33,7 @@ import           Control.Monad import           Data.Function import           Data.Typeable-import           Network.Socket           (fdSocket, setNonBlockIfNeeded)+import           Network.Socket           (withFdSocket, setNonBlockIfNeeded) import           Network.Wai              as Wai import           Network.Wai.Handler.Warp as Warp import qualified Network.Wai.Handler.Warp.Internal as WarpInternal@@ -219,8 +219,9 @@    case maybeSocket of     Just socket -> do-      setNonBlockIfNeeded (fdSocket socket)-      runSettingsSocket settings' socket app+      withFdSocket socket $ \fd -> do+        setNonBlockIfNeeded fd+        runSettingsSocket settings' socket app     Nothing ->       runSettings settings' app 
warp-systemd.cabal view
@@ -1,5 +1,5 @@ name:                warp-systemd-version: 0.1.0.0+version: 0.1.1.0 synopsis:            Socket activation and other systemd integration for the Warp web server (WAI) homepage:            https://github.com/hercules-ci/warp-systemd license:             BSD3@@ -14,12 +14,12 @@  library   exposed-modules:     Network.Wai.Handler.Warp.Systemd-  build-depends:       base >=4.9 && < 4.13-                     , network >= 2.6.3.0 && < 3.1-                     , systemd == 1.*+  build-depends:       base >=4.9 && < 4.14+                     , network >= 3.1 && < 3.2+                     , systemd == 2.*                      , unix                      , wai == 3.2.*-                     , warp == 3.2.*+                     , warp >= 3.2.0 && < 3.4   hs-source-dirs:      src   default-language:    Haskell2010   ghc-options:         -Wall