Skip to content

revisit compatibility with gemified net/http #249

Open
@kares

Description

@kares

JRuby had a few modification to net/http in stdlib to work-around APIs JOSSL does not provide (e.g. session_new_cb=)
as well as some custom Java specific features (using the JVM system proxy).

ATM, once a gem-ifiied net/http is installed further gem install starts failing with the relevant errors e.g.

OpenSSL::SSL::SSLContext#session_cache_mode= has no effect under JRuby
ERROR:  While executing gem ... (NoMethodError)
    undefined method `session_new_cb=' for #<OpenSSL::SSL::SSLContext:0x1782896>
Did you mean?  session_id_context=

We could provide dummy APIs (such as session_new_cb=) even if they would do nothing as long as net/http does not rely on them as "mission critical" and they do not interfere with TLS security.

Upstream case (for JRuby 9.4): jruby/jruby#7088

Activity

added a commit that references this issue on Apr 7, 2022
kares

kares commented on Apr 11, 2022

@kares
MemberAuthor

for the record a net/http patch has been posted that handles JRuby compatibility: ruby/net-http#52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      revisit compatibility with gemified net/http · Issue #249 · jruby/jruby-openssl