diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-01-20 20:32:24 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-01-20 20:32:24 +0000 |
commit | 7ad4e300c29b06fd53aca9f9bad18f97f9a34633 (patch) | |
tree | 4d04679ace5f876e642b6b091deb18025b10c9d1 /lib/rainbows/event_machine.rb | |
parent | 72cbecfe01b8c4b2c7bb7e362401805374036dc2 (diff) | |
download | rainbows-7ad4e300c29b06fd53aca9f9bad18f97f9a34633.tar.gz |
ev_core is always loaded after forking, so eliminate the need for extra setup steps for each concurrency model that uses it
Diffstat (limited to 'lib/rainbows/event_machine.rb')
-rw-r--r-- | lib/rainbows/event_machine.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/rainbows/event_machine.rb b/lib/rainbows/event_machine.rb index 990a186..c78a406 100644 --- a/lib/rainbows/event_machine.rb +++ b/lib/rainbows/event_machine.rb @@ -48,11 +48,6 @@ module Rainbows::EventMachine include Rainbows::Base - def init_worker_process(worker) # :nodoc: - Rainbows::Response.setup(Rainbows::EventMachine::Client) - super - end - # 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) @@ -71,7 +66,6 @@ module Rainbows::EventMachine Rainbows::EventMachine::Server.const_set(:MAX, max) Rainbows::EventMachine::Server.const_set(:CL, client_class) client_class.const_set(:APP, Rainbows.server.app) - Rainbows::EvCore.setup EM.run { conns = EM.instance_variable_get(:@conns) or raise RuntimeError, "EM @conns instance variable not accessible!" |