Skip to content

Commit

Permalink
Merge branch 'release/v0.8.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitsutoshi Aoe committed Nov 7, 2014
2 parents 121264f + 37b4d90 commit c04e67b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions influxdb.cabal
@@ -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
Expand Down Expand Up @@ -153,5 +153,5 @@ source-repository head

source-repository this
type: git
tag: v0.7.1.1
tag: v0.8.0
location: https://github.com/maoe/influxdb-haskell.git
8 changes: 5 additions & 3 deletions src/Database/InfluxDB/Http.hs
Expand Up @@ -759,11 +759,13 @@ withPool pool request f = do
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
Expand Down

0 comments on commit c04e67b

Please sign in to comment.