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

Comments

Projects
None yet
3 participants
@aabed

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

This comment has been minimized.

Show comment
Hide comment
@headius

headius May 28, 2015

Member

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

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

This comment has been minimized.

Show comment
Hide comment
@aabed

aabed May 30, 2015

any suggested solutions ?

aabed commented May 30, 2015

any suggested solutions ?

@headius

This comment has been minimized.

Show comment
Hide comment
@headius

headius Jun 2, 2015

Member

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.

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.

@enebo enebo closed this in 6b07e3c Aug 11, 2016

@enebo enebo added this to the JRuby 9.1.3.0 milestone Aug 26, 2016

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