lib/http/broker.rb in rsence-2.0.0.9.pre vs lib/http/broker.rb in rsence-2.0.0.10.pre
- old
+ new
@@ -82,14 +82,15 @@
else
@@ping_sim = latency/1000.0
end
Thread.new do
Thread.pass
- puts "testing port.. #{host.inspect}"
+ puts "Testing if #{host}:#{port} responds.." if ::RSence.args[:debug]
until RSence.argv.test_port( port, host )
- puts "port tested"
- sleep 0.1
+ puts "..#{host}:#{port} doesn't respond yet.." if ::RSence.args[:debug]
+ sleep 0.2
end
+ puts "..#{host}:#{port} responds!" if ::RSence.args[:debug]
@@transporter.online = true
end
require 'rack'