Project

General

Profile

Bug #3514 » drb.patch

runpaint (Run Paint Run Run), 07/02/2010 04:38 AM

View differences:

lib/drb/drb.rb
# Open a client connection to +uri+ using configuration +config+.
def self.open(uri, config)
host, port, option = parse_uri(uri)
host, port, = parse_uri(uri)
host.untaint
port.untaint
soc = TCPSocket.open(host, port)
......
# configuration +config+.
def self.open_server(uri, config)
uri = 'druby://:0' unless uri
host, port, opt = parse_uri(uri)
host, port, _ = parse_uri(uri)
config = {:tcp_original_host => host}.update(config)
if host.size == 0
host = getservername
lib/drb/invokemethod.rb
if x.size == 1 && x[0].class == Array
x[0] = DRbArray.new(x[0])
end
block_value = @block.call(*x)
@block.call(*x)
end
def perform_with_block
(6-6/8)