From 1524440a0dbe63de56105775cf93e709cc617b33 Mon Sep 17 00:00:00 2001 From: ArturT Date: Fri, 20 Jul 2018 09:59:06 +0200 Subject: [PATCH 1/2] Switch to fallback mode when failed to open TCP connection to API --- lib/knapsack_pro/client/connection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 8a8cf1a5d63c63cb2fc91b744a1595fe6d857cac Mon Sep 17 00:00:00 2001 From: ArturT Date: Fri, 20 Jul 2018 10:01:26 +0200 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) 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