Socket::SOMAXCONN #1385

Closed
lucasallan opened this Issue Jan 8, 2014 · 2 comments

Projects

None yet

3 participants

@lucasallan
JRuby Team member

ruby 1.9.3p448

>> require 'socket'
=> true
>> Socket::SOMAXCONN
=> 128

ruby 2.1.0dev

>> require 'socket'
=> true
>> Socket::SOMAXCONN
=> 128

jruby 1.7.9 (1.9.3p392)

>> require 'socket'
=> true
>> Socket::SOMAXCONN
NameError: uninitialized constant Socket::SOMAXCONN
    from org/jruby/RubyModule.java:2689:in `const_missing'
    from (irb):2:in `evaluate'
    from org/jruby/RubyKernel.java:1119:in `eval'
    from org/jruby/RubyKernel.java:1519:in `loop'
    from org/jruby/RubyKernel.java:1282:in `catch'
    from org/jruby/RubyKernel.java:1282:in `catch'
    from /Users/lucas/.rvm/rubies/jruby-1.7.9/bin/irb:13:in `(root)'
@headius
JRuby Team member

I added it on master but with a perhaps too-low value. We need to add it to jnr-constants (see jnr/jnr-constants#4) but for now I will hardcode to the OS X value of 128.

@headius headius closed this in 55f418f Jan 8, 2014
@lucasallan
JRuby Team member

@headius Sounds good. I'll see if I can help with it.

@enebo enebo modified the milestone: JRuby 1.7.10, JRuby 1.7.11 Feb 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment