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

Error while using socket class #2997

Closed
aabed opened this issue May 27, 2015 · 3 comments
Closed

Error while using socket class #2997

aabed opened this issue May 27, 2015 · 3 comments

Comments

@aabed
Copy link

aabed commented May 27, 2015

jruby-1.7.19 :001 > require "socket"
=> true
jruby-1.7.19 :002 > Socket::Option.bool(:INET, :SOCKET, :KEEPALIVE,true)
ArgumentError: wrong number of arguments calling bool (4 for 1)
from (irb):2:in evaluate' from org/jruby/RubyKernel.java:1107:ineval'
from org/jruby/RubyKernel.java:1507:in loop' from org/jruby/RubyKernel.java:1270:incatch'
from org/jruby/RubyKernel.java:1270:in catch' from /usr/local/rvm/rubies/jruby-1.7.19/bin/irb:13:in(root)'

@headius
Copy link
Member

headius commented May 28, 2015

It looks like Socket::Option is only partially implemented. The bool method and several others don't actually do anything.

@aabed
Copy link
Author

aabed commented May 30, 2015

any suggested solutions ?

@headius
Copy link
Member

headius commented Jun 2, 2015

Well...someone needs to implement it :-) Unfortunately it's a little gnarly...it represents low-level socket structures that don't really have an equivalent on the JVM.

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

No branches or pull requests

3 participants