influxdb 0.7.1.1 → 0.8.0
raw patch · 3 files changed
+12/−5 lines, 3 files
Files
- CHANGELOG.md +5/−0
- influxdb.cabal +2/−2
- src/Database/InfluxDB/Http.hs +5/−3
CHANGELOG.md view
@@ -1,3 +1,8 @@+## v0.8.0 - 2014-11-07++* Retry on connection failure and response timeout in addition to IOException+ * Note that this may break existing code silently+ ## v0.7.1.1 - 2014-09-19 * Relax upper bound for http-client
influxdb.cabal view
@@ -1,5 +1,5 @@ name: influxdb-version: 0.7.1.1+version: 0.8.0 synopsis: Haskell client library for InfluxDB description: Haskell client library for InfluxDB homepage: https://github.com/maoe/influxdb-haskell@@ -153,5 +153,5 @@ source-repository this type: git- tag: v0.7.1.1+ tag: v0.8.0 location: https://github.com/maoe/influxdb-haskell.git
src/Database/InfluxDB/Http.hs view
@@ -759,11 +759,13 @@ const $ #endif Handler $ \e -> case e of- HC.InternalIOException _ -> do- failover pool- return True+ HC.FailedConnectionException {} -> retry+ HC.FailedConnectionException2 {} -> retry+ HC.InternalIOException {} -> retry+ HC.ResponseTimeout {} -> retry _ -> return False ]+ retry = True <$ failover pool escapeText :: Text -> BS.ByteString escapeText = escapeString . T.unpack