From 40445641f11f01c6a24bf96c8b80eed5fd33a512 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 28 Dec 2010 17:59:27 -0800 Subject: complete Rev => Coolio renaming We use Cool.io internally everywhere now, but preserve Rev-based models for anybody using them. --- lib/rainbows/rev/core.rb | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 lib/rainbows/rev/core.rb (limited to 'lib/rainbows/rev/core.rb') diff --git a/lib/rainbows/rev/core.rb b/lib/rainbows/rev/core.rb deleted file mode 100644 index 8b3ffa8..0000000 --- a/lib/rainbows/rev/core.rb +++ /dev/null @@ -1,25 +0,0 @@ -# -*- encoding: binary -*- -# :enddoc: -module Rainbows::Rev::Core - include Rainbows::Base - - # runs inside each forked worker, this sits around and waits - # for connections and doesn't die until the parent dies (or is - # given a INT, QUIT, or TERM signal) - def worker_loop(worker) - Rainbows::Response.setup(Rainbows::Rev::Client) - require 'rainbows/rev/sendfile' - Rainbows::Rev::Client.__send__(:include, Rainbows::Rev::Sendfile) - init_worker_process(worker) - mod = Rainbows.const_get(@use) - rloop = Rainbows::Rev::Server.const_set(:LOOP, Rev::Loop.default) - Rainbows::Rev::Client.const_set(:LOOP, rloop) - Rainbows::Rev::Server.const_set(:MAX, @worker_connections) - Rainbows::Rev::Server.const_set(:CL, mod.const_get(:Client)) - Rainbows::EvCore.const_set(:APP, G.server.app) - Rainbows::EvCore.setup - Rainbows::Rev::Heartbeat.new(1, true).attach(rloop) - LISTENERS.map! { |s| Rainbows::Rev::Server.new(s).attach(rloop) } - rloop.run - end -end -- cgit v1.2.3-24-ge0c7