Skip to content

Can't require in jruby #50

Description

@HoneyryderChuck

I'm currently developing against the master branch, as it's the only that runs in ruby 2.3 and greater without warnings.

I've encountered this problem when running the ssl tests against the latest jruby, when I require this gem:

jruby/jruby-openssl#24

This has been recently fixed, but not yet released (check the discrepancy between report date and fix date):

jruby/jruby-openssl#124

I'd like to argue for autoloading the handlers in this gem, instead of requiring them. It will have the following advantages:

  • better on-boot memory utilization
  • only require what you use
  • don't break if openssl side-feature isn't implemented by the distribution.

The last one is obviously the important :) As long as the components are thread-safe, autoloading shouldn't be an issue.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions