packages feed

ekg-statsd 0.2.3.0 → 0.2.4.0

raw patch · 3 files changed

+13/−5 lines, 3 filesdep ~basedep ~networkdep ~timePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base, network, time

API changes (from Hackage documentation)

Files

CHANGES.md view
@@ -1,3 +1,9 @@+## 0.2.4.0 (2018-08-01)++* Don't rethrow `ThreadKilled` exceptions to the thread that invoked+  `forkStatsd`, so that the statsd thread can be safely killed+  ([#20](https://github.com/tibbe/ekg-statsd/pull/20)).+ ## 0.2.3.0 (2018-04-10)   * API addition: 'statsdFlush', allows to flush the sample to statsd
System/Remote/Monitoring/Statsd.hs view
@@ -25,7 +25,7 @@     ) where  import Control.Concurrent (ThreadId, myThreadId, threadDelay, throwTo)-import Control.Exception (IOException, catch)+import Control.Exception (IOException, AsyncException(ThreadKilled), catch, fromException) import Control.Monad (forM_, when) import qualified Data.ByteString.Char8 as B8 import qualified Data.HashMap.Strict as M@@ -147,7 +147,9 @@     tid <- forkFinally (loop opts flush) $ \ r -> do         closeSocket         case r of-            Left e  -> throwTo me e+            Left e  -> case fromException e of+              Just ThreadKilled  -> return ()+              _                  -> throwTo me e             Right _ -> return ()      return $ Statsd tid flush
ekg-statsd.cabal view
@@ -1,5 +1,5 @@ name:                ekg-statsd-version:             0.2.3.0+version:             0.2.4.0 synopsis:            Push metrics to statsd description:   This library lets you push system metrics to a statsd server.@@ -14,7 +14,7 @@ build-type:          Simple extra-source-files:  CHANGES.md cabal-version:       >=1.10-tested-with:         GHC == 8.4.1,  GHC == 8.2.2, GHC == 8.0.2,+tested-with:         GHC == 8.4.3,  GHC == 8.2.2, GHC == 8.0.2,                      GHC == 7.10.3, GHC == 7.8.4, GHC == 7.6.3  library@@ -25,7 +25,7 @@     base >= 4.5 && < 4.12,     bytestring < 1.0,     ekg-core >= 0.1 && < 1.0,-    network < 2.7,+    network < 2.8,     text < 1.3,     time < 1.9,     unordered-containers < 0.3