lib/plezi/base/engine.rb in plezi-0.7.3 vs lib/plezi/base/engine.rb in plezi-0.7.4
- old
+ new
@@ -35,9 +35,10 @@
exit_flag = false
threads = []
run_every(5 , Plezi.method(:clear_connections)) #{info "Cleared inactive Connections"}
run_every 3600 , GC.method(:start)
# run_every( 1 , Proc.new() { Plezi.info "#{IO_CONNECTION_DIC.length} active connections ( #{ IO_CONNECTION_DIC.select{|k,v| v.protocol.is_a?(WSProtocol)} .length } websockets)." })
+ # run_every 10 , -> {Plezi.info "Cache report: #{CACHE_STORE.length} objects cached." }
(max_threads).times { Thread.new { thread_cycle until exit_flag } }
# Thread.new { check_connections until SERVICES.empty? }
#...
# set signal tarps