Skip to content

Commit

Permalink
BUGFIX: MSF-26016 Update jruby-openssl dependency for LCM Bricks
Browse files Browse the repository at this point in the history
  • Loading branch information
hung-nguyen-hoang committed Jan 5, 2024
1 parent 8a155e0 commit d025091
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ RUN curl -sSL https://rvm.io/mpapis.asc | gpg --import - \
SHELL ["/bin/bash", "-l", "-c"]

RUN rvm install jruby-${JRUBY_VERSION} && gem update --system \
&& gem install jruby-openssl \
&& gem install bundler -v 2.4.6 \
&& gem install rake -v 13.0.6

Expand Down
4 changes: 4 additions & 0 deletions lib/gooddata/rest/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ def retryable(options = {}, &_block)
if (retries -= 1) > 0
retry
else
read_would_block_error = OpenSSL::SSL.const_defined?(:SSLErrorWaitReadable) && e.is_a?(OpenSSL::SSL::SSLErrorWaitReadable)
error_message = "action=retryable error_type=read_would_block status=failed time=#{retry_time} error=#{e.message} error_detail=#{e.backtrace}"
GoodData.gd_logger&.warn(error_message) if read_would_block_error

fail e
end
end
Expand Down

0 comments on commit d025091

Please sign in to comment.