search for: bind_listen

Displaying 2 results from an estimated 2 matches for "bind_listen".

2013 Nov 04
2
Unicorn 4.7.0 tests fail on OSX 10.7.5 and debian squeeze
...cket_helper.rb b/test/unit/test_socket_helper.rb index abc177b..2244442 100644 --- a/test/unit/test_socket_helper.rb +++ b/test/unit/test_socket_helper.rb @@ -189,7 +189,6 @@ class TestSocketHelper < Test::Unit::TestCase port = unused_port @test_addr name = "#@test_addr:#{port}" sock = bind_listen(name, :reuseport => true) - cur = sock.getsockopt(Socket::SOL_SOCKET, SO_REUSEPORT).unpack(''i'')[0] - assert_equal 1, cur + assert sock.getsockopt(Socket::SOL_SOCKET, SO_REUSEPORT).bool end if defined?(SO_REUSEPORT) end The error I get when I test 4.7.0 on debian squeeze (in...
2013 Oct 25
2
[PATCH] support SO_REUSEPORT on new listeners (:reuseport)
..._helper.rb @@ -184,4 +184,12 @@ class TestSocketHelper < Test::Unit::TestCase assert_equal 1, cur rescue Errno::EAFNOSUPPORT end if RUBY_VERSION >= "1.9.2" + + def test_reuseport + port = unused_port @test_addr + name = "#@test_addr:#{port}" + sock = bind_listen(name, :reuseport => true) + cur = sock.getsockopt(Socket::SOL_SOCKET, SO_REUSEPORT).unpack(''i'')[0] + assert_equal 1, cur + end if defined?(SO_REUSEPORT) end -- Eric Wong _______________________________________________ Unicorn mailing list - mongrel-unicorn@rubyforge.or...