ruby-changes:40233
From: naruse <ko1@a...>
Date: Wed, 28 Oct 2015 06:00:20 +0900 (JST)
Subject: [ruby-changes:40233] naruse:r52314 (trunk): * lib/rinda/ring.rb: Linux's SO_REUSEPORT is not for multicast.
naruse 2015-10-28 06:00:07 +0900 (Wed, 28 Oct 2015) New Revision: 52314 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52314 Log: * lib/rinda/ring.rb: Linux's SO_REUSEPORT is not for multicast. Modified files: trunk/ChangeLog trunk/lib/rinda/ring.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 52313) +++ ChangeLog (revision 52314) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Oct 28 05:59:19 2015 NARUSE, Yui <naruse@r...> + + * lib/rinda/ring.rb: Linux's SO_REUSEPORT is not for multicast. + Tue Oct 27 23:14:14 2015 Nobuyoshi Nakada <nobu@r...> * defs/id.def: enable anonymous IDs not to expose internal IDs for Index: lib/rinda/ring.rb =================================================================== --- lib/rinda/ring.rb (revision 52313) +++ lib/rinda/ring.rb (revision 52314) @@ -137,7 +137,7 @@ module Rinda https://github.com/ruby/ruby/blob/trunk/lib/rinda/ring.rb#L137 @sockets << socket if addrinfo.ipv4_multicast? or addrinfo.ipv6_multicast? then - if Socket.const_defined?(:SO_REUSEPORT) then + if Socket.const_defined?(:SO_REUSEPORT) && /linux/ !~ RUBY_PLATFORM then socket.setsockopt(:SOCKET, :SO_REUSEPORT, true) else socket.setsockopt(:SOCKET, :SO_REUSEADDR, true) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/