Skip to content

Commit 50ef47f

Browse files
Merge pull request #1996 from gooddata/STL-715-NT
STL-715: Increase retry time for read would block error
2 parents 4283e0c + 68b2761 commit 50ef47f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.7.74
1+
3.7.75

lib/gooddata/rest/connection.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class Connection
6565
]
6666

6767
RETRY_TIME_INITIAL_VALUE = 1
68-
RETRY_TIME_COEFFICIENT = 1.5
68+
RETRY_TIME_COEFFICIENT = 2
6969
RETRYABLE_ERRORS << Net::ReadTimeout if Net.const_defined?(:ReadTimeout)
7070

7171
RETRYABLE_ERRORS << OpenSSL::SSL::SSLErrorWaitReadable if OpenSSL::SSL.const_defined?(:SSLErrorWaitReadable)
@@ -94,7 +94,7 @@ def generate_string(length = ID_LENGTH)
9494

9595
# Retry block if exception thrown
9696
def retryable(options = {}, &_block)
97-
opts = { :tries => 17, :on => RETRYABLE_ERRORS }.merge(options)
97+
opts = { :tries => 12, :on => RETRYABLE_ERRORS }.merge(options)
9898

9999
retry_exception = opts[:on]
100100
retries = opts[:tries]

0 commit comments

Comments
 (0)