# File lib/net/ssh/connection/driver.rb, line 116 def register_data_request( channel, data, type=nil ) @data_requests_mutex.synchronize do @data_requests << DataRequest.new( channel, data, type ) end # make sure the new data request has a chance to be sent to the # server... Otherwise, it cannot be sent until the next time #process # is invoked, which can be unexpected in synchronous situations. process_data_requests end