From f69ff95c555e9c9e23da31b2686412533e7adea5 Mon Sep 17 00:00:00 2001 From: Hung Nguyen Date: Wed, 16 Oct 2024 13:52:34 +0700 Subject: [PATCH] STL-715: Increase retry time for read would block error --- VERSION | 2 +- lib/gooddata/rest/connection.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index d87ab0265..326e2acf6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.7.74 +3.7.75 diff --git a/lib/gooddata/rest/connection.rb b/lib/gooddata/rest/connection.rb index 71b5ac8d7..4a847ab82 100644 --- a/lib/gooddata/rest/connection.rb +++ b/lib/gooddata/rest/connection.rb @@ -65,7 +65,7 @@ class Connection ] RETRY_TIME_INITIAL_VALUE = 1 - RETRY_TIME_COEFFICIENT = 1.5 + RETRY_TIME_COEFFICIENT = 2 RETRYABLE_ERRORS << Net::ReadTimeout if Net.const_defined?(:ReadTimeout) RETRYABLE_ERRORS << OpenSSL::SSL::SSLErrorWaitReadable if OpenSSL::SSL.const_defined?(:SSLErrorWaitReadable) @@ -94,7 +94,7 @@ def generate_string(length = ID_LENGTH) # Retry block if exception thrown def retryable(options = {}, &_block) - opts = { :tries => 17, :on => RETRYABLE_ERRORS }.merge(options) + opts = { :tries => 12, :on => RETRYABLE_ERRORS }.merge(options) retry_exception = opts[:on] retries = opts[:tries]