зеркало из https://github.com/github/ruby.git
Revert "* lib/rinda/ring.rb: Linux's SO_REUSEPORT is not for multicast."
This reverts commit r52314. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
a8919bc0a6
Коммит
00ce700c93
|
@ -1,7 +1,3 @@
|
|||
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
|
||||
|
|
|
@ -137,7 +137,7 @@ module Rinda
|
|||
@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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче