search for: new_tcp_server

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

2013 Oct 25
2
[PATCH] support SO_REUSEPORT on new listeners (:reuseport)
.../freebsd/ # do not send out partial frames (FreeBSD) TCP_NOPUSH = 4 unless defined?(TCP_NOPUSH) @@ -142,9 +151,9 @@ module Unicorn File.umask(old_umask) end elsif /\A\[([a-fA-F0-9:]+)\]:(\d+)\z/ =~ address - new_ipv6_server($1, $2.to_i, opt) + new_tcp_server($1, $2.to_i, opt.merge(:ipv6=>true)) elsif /\A(\d+\.\d+\.\d+\.\d+):(\d+)\z/ =~ address - Kgio::TCPServer.new($1, $2.to_i) + new_tcp_server($1, $2.to_i, opt) else raise ArgumentError, "Don''t know how to bind: #{address}" end @@ -152,1...
2013 Nov 04
2
Unicorn 4.7.0 tests fail on OSX 10.7.5 and debian squeeze
...ian squeeze (in a VM): : 1) Error: : test_reuseport(TestSocketHelper): : Errno::ENOPROTOOPT: Protocol not available : /home/ahobson/git/unicorn/test/ruby-1.9.3/lib/unicorn/socket_helper.rb:183:in `setsockopt'' : /home/ahobson/git/unicorn/test/ruby-1.9.3/lib/unicorn/socket_helper.rb:183:in `new_tcp_server'' : /home/ahobson/git/unicorn/test/ruby-1.9.3/lib/unicorn/socket_helper.rb:165:in `bind_listen'' : test/unit/test_socket_helper.rb:191:in `test_reuseport'' : : 14 tests, 84 assertions, 0 failures, 1 errors, 0 skips It appears that on linux, SO_REUSEPORT is not necessary t...