RubyGems: Remove unused ctx.tmp_dh_callback in start_ssl_server#9633
Open
junaruga wants to merge 1 commit into
Open
RubyGems: Remove unused ctx.tmp_dh_callback in start_ssl_server#9633junaruga wants to merge 1 commit into
junaruga wants to merge 1 commit into
Conversation
Member
Author
|
I don't think the following test failures are related to this PR. https://github.com/ruby/rubygems/actions/runs/27963205081/job/82750000370?pr=9633 TestSetTraceFunc#test_enable_target_thread [/home/runner/work/rubygems/rubygems/ruby/ruby/test/ruby/test_settracefunc.rb:2595] https://github.com/ruby/rubygems/actions/runs/27963205085/job/82750000864?pr=9633#step:8:39 |
Member
|
+1. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was the end-user or developer problem that led to this PR?
I think the following code in
start_ssl_server, test/rubygems/test_gem_remote_fetcher_local_ssl_server.rb is possibly not used any more.In my investigation, the code was added at the commit 5e16a54 link when the
start_ssl_servermethod was used with WEBrick or OpenSSL versions older than version 1.1.I confirmed that the test with Ruby compiled with OpenSSL 1.1.1w passed as follows.
Because as far as I know, RHEL 8 server in RubyCI has the oldest version of OpenSSL 1.1.1k.
So, as I confirmed the test passed with OpenSSL 1.1.1w, I guess the changed test passes in all the servers of RubyCI.
Ruby OpenSSL latest stable version 4.0.x's minimal supported OpenSSL vesion is 1.1.1. So, I think it's good enough to test with OpenSSL 1.1.1.
https://github.com/ruby/openssl
What is your fix for the problem, implemented in this PR?
Deleted the unused
ctx.tmp_dh_callbacklogic.Make sure the following tasks are checked