End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Rinda::RingServer#write_services
write_services
lib/rinda/ring.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rinda/ring.rb, line 178
def write_services
@sockets.map do |s|
Thread.new(s) do |socket|
loop do
msg = socket.recv(1024)
do_write(msg)
end
end
end
end
Creates threads that pick up UDP packets and passes them to do_write for decoding.