Skip to content

Commit

Permalink
STL-715: Increase retry time for read would block error
Browse files Browse the repository at this point in the history
  • Loading branch information
hung-nguyen-hoang committed Oct 16, 2024
1 parent 4283e0c commit 68b2761
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 68b2761

Please sign in to comment.