mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
a8919bc0a6
commit
00ce700c93
2 changed files with 1 additions and 5 deletions
|
@ -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>
|
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
|
* defs/id.def: enable anonymous IDs not to expose internal IDs for
|
||||||
|
|
|
@ -137,7 +137,7 @@ module Rinda
|
||||||
@sockets << socket
|
@sockets << socket
|
||||||
|
|
||||||
if addrinfo.ipv4_multicast? or addrinfo.ipv6_multicast? then
|
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)
|
socket.setsockopt(:SOCKET, :SO_REUSEPORT, true)
|
||||||
else
|
else
|
||||||
socket.setsockopt(:SOCKET, :SO_REUSEADDR, true)
|
socket.setsockopt(:SOCKET, :SO_REUSEADDR, true)
|
||||||
|
|
Loading…
Reference in a new issue