diff --git a/CHANGELOG.md b/CHANGELOG.md index 681183d8..c1dad1f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ * TODO +### 0.55.1 + +* Switch to fallback mode when failed to open TCP connection to API + + https://github.com/KnapsackPro/knapsack_pro-ruby/pull/63 + +https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v0.55.0...v0.55.1 + ### 0.55.0 * Fix to record proper time for around(:each) in RSpec diff --git a/lib/knapsack_pro/client/connection.rb b/lib/knapsack_pro/client/connection.rb index fb86e8b1..86082361 100644 --- a/lib/knapsack_pro/client/connection.rb +++ b/lib/knapsack_pro/client/connection.rb @@ -100,7 +100,7 @@ def post end response - rescue Errno::ECONNREFUSED, EOFError, SocketError, Net::OpenTimeout, Net::ReadTimeout => e + rescue Errno::ECONNREFUSED, Errno::ETIMEDOUT, EOFError, SocketError, Net::OpenTimeout, Net::ReadTimeout => e logger.warn(e.inspect) retries += 1 if retries < 3