Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Bolt adaptor work with JRuby #300

Merged
merged 1 commit into from Aug 22, 2017
Merged

Conversation

jgaskins
Copy link
Contributor

JRuby does not support BasicSocket#sendmsg (connecting via Bolt on JRuby crashed with a NotImplementedError), but it does support BasicSocket#send. send requires flags to be specified, but sendmsg defaults them to 0, so I just used that since we weren't overriding that default here anyway.

This all started as an experiment to see if JRuby would run Bolt faster than HTTP, but that's not the case, unfortunately. JRuby Bolt is indeed over 2.5x as fast as CRuby Bolt, but still lags behind JRuby HTTP and CRuby HTTP (which are actually pretty close to each other) by about 37%.

Tested with JRuby 9.1.12.0 on Java 8 on queries deserializing 18k nodes.

Pings:
@cheerfulstoic
@subvertallchris

JRuby does not support BasicSocket#sendmsg, but it does support
BasicSocket#send.
@coveralls
Copy link

coveralls commented Aug 20, 2017

Coverage Status

Coverage remained the same at 73.68% when pulling 74082a1 on jgaskins:jruby-bolt into ef74786 on neo4jrb:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 73.68% when pulling 74082a1 on jgaskins:jruby-bolt into ef74786 on neo4jrb:master.

@cheerfulstoic
Copy link
Contributor

Excellent, thank you!

@cheerfulstoic cheerfulstoic merged commit a993795 into neo4jrb:master Aug 22, 2017
@jgaskins jgaskins deleted the jruby-bolt branch August 22, 2017 14:42
cheerfulstoic pushed a commit that referenced this pull request Aug 22, 2017
JRuby does not support BasicSocket#sendmsg, but it does support
BasicSocket#send.
(cherry picked from commit a993795)
cheerfulstoic added a commit that referenced this pull request Aug 22, 2017
@cheerfulstoic
Copy link
Contributor

Released as 7.2.3!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants