# File lib/Dnsruby/event_machine_interface.rb, line 48 def EventMachineInterface::add_to_outstanding(c, timeout) # Add to timer structures @@timer_procs[Time.now+timeout+FUDGE_FACTOR]=[c, Proc.new { # Cancel the send c.closing=true c.close_connection c.send_timeout }] @@timer_keys_sorted=@@timer_procs.keys.sort @@outstanding_sends.push(c) if (@@outstanding_sends.length==1) EventMachine::Timer.new(0) {process_timers} end end