Skip to content

Commit

Permalink
STL-715: Fixing read would block error
Browse files Browse the repository at this point in the history
  • Loading branch information
hung-nguyen-hoang committed Oct 7, 2024
1 parent e3aac26 commit 9703c15
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/gooddata/rest/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,17 @@ def initialize(opts)
# Initialize headers
reset_headers!

if OpenSSL::SSL.const_defined?(:OP_IGNORE_UNEXPECTED_EOF)
GoodData.logger.info 'Start add ignore unexpected eof'
GoodData.logger.info "SSL context start=#{OpenSSL::SSL::SSLContext::DEFAULT_PARAMS[:options]}"
OpenSSL::SSL::SSLContext::DEFAULT_PARAMS[:options] |= OpenSSL::SSL::OP_IGNORE_UNEXPECTED_EOF
GoodData.logger.info "SSL context start=#{OpenSSL::SSL::SSLContext::DEFAULT_PARAMS[:options]}"
GoodData.logger.info 'Success add ignore unexpected eof'
else
GoodData.logger.info 'Cannot add ignore unexpected eof'
GoodData.logger.info "SSL context start=#{OpenSSL::SSL::SSLContext::DEFAULT_PARAMS[:options]}"
end

@at_exit_handler_installed = nil
end

Expand Down

0 comments on commit 9703c15

Please sign in to comment.