[前][次][番号順一覧][スレッド一覧]

ruby-changes:40235

From: naruse <ko1@a...>
Date: Wed, 28 Oct 2015 11:53:00 +0900 (JST)
Subject: [ruby-changes:40235] naruse:r52316 (trunk): Revert "* lib/rinda/ring.rb: Linux's SO_REUSEPORT is not for multicast."

naruse	2015-10-28 11:52:31 +0900 (Wed, 28 Oct 2015)

  New Revision: 52316

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52316

  Log:
    Revert "* lib/rinda/ring.rb: Linux's SO_REUSEPORT is not for multicast."
    
    This reverts commit r52314.

  Modified files:
    trunk/ChangeLog
    trunk/lib/rinda/ring.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52315)
+++ ChangeLog	(revision 52316)
@@ -1,7 +1,3 @@ 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 52315)
+++ lib/rinda/ring.rb	(revision 52316)
@@ -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) && /linux/ !~ RUBY_PLATFORM then
+        if Socket.const_defined?(:SO_REUSEPORT) 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/

[前][次][番号順一覧][スレッド一覧]