diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-27 21:00:07 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-27 21:00:07 +0000 |
commit | e5747f3e3cc18742a34696425679071a6e3a6b98 (patch) | |
tree | 720fb236e5f1323b1c3e5f2578db229574a3d695 | |
parent | 3c59a221e175f1480757188db102c22f3ba2f422 (diff) | |
download | ruby-e5747f3e3cc18742a34696425679071a6e3a6b98.tar.gz |
* lib/rinda/ring.rb: Linux's SO_REUSEPORT is not for multicast.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/rinda/ring.rb | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Wed Oct 28 05:59:19 2015 NARUSE, Yui <naruse@ruby-lang.org> + + * lib/rinda/ring.rb: Linux's SO_REUSEPORT is not for multicast. + Tue Oct 27 23:14:14 2015 Nobuyoshi Nakada <nobu@ruby-lang.org> * defs/id.def: enable anonymous IDs not to expose internal IDs for diff --git a/lib/rinda/ring.rb b/lib/rinda/ring.rb index fe33420494..784d0d503d 100644 --- a/lib/rinda/ring.rb +++ b/lib/rinda/ring.rb @@ -137,7 +137,7 @@ module Rinda @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) |