BasicSocket#getsockopt does not work with all possible Symbol combinations #3438

Closed
YorickPeterse opened this Issue Oct 30, 2015 · 2 comments

Projects

None yet

3 participants

@YorickPeterse

Looking at the spec output it also seems JRuby doesn't implement everything of Socket::Option, e.g. the bool and linger methods.

@headius
Member
headius commented Oct 30, 2015

Yes, this is known. We do not use FFI to implement socket and are limited in how many options the JDK Socket classes support.

@etehtsea etehtsea added a commit to etehtsea/jruby that referenced this issue Aug 31, 2016
@etehtsea etehtsea Fix passing socket option in a form of SO_OPTION
For example:
Socket::Option.new(:UNSPEC, :SOCKET, :SO_LINGER, [0, 0].pack('i*')
Fixes #3438
7168ced
@etehtsea etehtsea added a commit to etehtsea/jruby that referenced this issue Aug 31, 2016
@etehtsea etehtsea Fix passing socket level in a form of SOL_LEVEL
For example:
Socket::Option.int(:AF_UNSPEC, :SOL_SOCKET, :LINGER, 1)
Fixes #3438
0a7cb71
@etehtsea etehtsea added a commit to etehtsea/jruby that referenced this issue Sep 7, 2016
@etehtsea etehtsea Fix passing socket option in a form of SO_OPTION
For example:
Socket::Option.new(:UNSPEC, :SOCKET, :SO_LINGER, [0, 0].pack('i*')
Fixes #3438
9c7b273
@etehtsea etehtsea added a commit to etehtsea/jruby that referenced this issue Sep 7, 2016
@etehtsea etehtsea Fix passing socket level in a form of SOL_LEVEL
For example:
Socket::Option.int(:AF_UNSPEC, :SOL_SOCKET, :LINGER, 1)
Fixes #3438
32989e8
@etehtsea etehtsea added a commit to etehtsea/jruby that referenced this issue Sep 8, 2016
@etehtsea etehtsea Fix passing socket level in a form of SOL_LEVEL
For example:
Socket::Option.int(:AF_UNSPEC, :SOL_SOCKET, :LINGER, 1)
Fixes #3438
8fac9c6
@etehtsea etehtsea added a commit to etehtsea/jruby that referenced this issue Sep 12, 2016
@etehtsea etehtsea Fix passing socket option in a form of SO_OPTION
For example:
Socket::Option.new(:UNSPEC, :SOCKET, :SO_LINGER, [0, 0].pack('i*')
Fixes #3438
f38e15b
@etehtsea etehtsea added a commit to etehtsea/jruby that referenced this issue Sep 12, 2016
@etehtsea etehtsea Fix passing socket level in a form of SOL_LEVEL
For example:
Socket::Option.int(:AF_UNSPEC, :SOL_SOCKET, :LINGER, 1)
Fixes #3438
138837d
@headius headius pushed a commit that closed this issue Sep 12, 2016
@etehtsea etehtsea Fix passing socket option in a form of SO_OPTION
For example:
Socket::Option.new(:UNSPEC, :SOCKET, :SO_LINGER, [0, 0].pack('i*')
Fixes #3438
a87d873
@headius headius closed this in a87d873 Sep 12, 2016
@enebo enebo added this to the JRuby 9.1.6.0 milestone Nov 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment