search for: testsockethelper

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

Did you mean: test_socket_helper
2013 Nov 04
2
Unicorn 4.7.0 tests fail on OSX 10.7.5 and debian squeeze
...ae22e6697ad46141434 that breaks the tests. I am using an old(ish) version of ruby: 1.9.3p125, but I don''t think that should matter. The error I get when I test 4.7.0 on OSX 10.7.5: : Finished tests in 0.041678s, 263.9282 tests/s, 1943.4714 assertions/s. : : 1) Failure: : test_reuseport(TestSocketHelper) [test/unit/test_socket_helper.rb:193]: : <1> expected but was : <512>. : : 11 tests, 81 assertions, 1 failures, 0 errors, 0 skips I don''t see how the current test can be platform independent. The following diff fixes OSX for me: diff --git a/test/unit/test_socket_helper.r...
2013 Oct 25
2
[PATCH] support SO_REUSEPORT on new listeners (:reuseport)
...rt, addr)) IO_PURGATORY << sock Kgio::TCPServer.for_fd(sock.fileno) diff --git a/test/unit/test_socket_helper.rb b/test/unit/test_socket_helper.rb index a38082c..abc177b 100644 --- a/test/unit/test_socket_helper.rb +++ b/test/unit/test_socket_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 = so...