Skip to content

Commit

Permalink
Merge pull request #1996 from gooddata/STL-715-NT
Browse files Browse the repository at this point in the history
STL-715: Increase retry time for read would block error
  • Loading branch information
peter-plochan authored Oct 16, 2024
2 parents 4283e0c + 68b2761 commit 50ef47f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.7.74
3.7.75
4 changes: 2 additions & 2 deletions lib/gooddata/rest/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 50ef47f

Please sign in to comment.