diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-11-07 20:09:50 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-11-07 20:12:22 -0800 |
commit | 7d07c36f1da30af054d78deed5e87f29832d6f6b (patch) | |
tree | 5b466654f6439dffc751889f624124d9121827cc /lib/rainbows/event_machine.rb | |
parent | 31fe6e621ac3d84a091b468f26118d2226716e9b (diff) | |
download | rainbows-7d07c36f1da30af054d78deed5e87f29832d6f6b.tar.gz |
It'll make development of future ev_core-derived things easier, hopefully.
Diffstat (limited to 'lib/rainbows/event_machine.rb')
-rw-r--r-- | lib/rainbows/event_machine.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/event_machine.rb b/lib/rainbows/event_machine.rb index 7f77428..76085dc 100644 --- a/lib/rainbows/event_machine.rb +++ b/lib/rainbows/event_machine.rb @@ -191,9 +191,9 @@ module Rainbows EM.epoll EM.kqueue logger.info "EventMachine: epoll=#{EM.epoll?} kqueue=#{EM.kqueue?}" - Client.const_set(:APP, G.server.app) Server.const_set(:MAX, G.server.worker_connections + HttpServer::LISTENERS.size) + EvCore.setup(Client) EM.run { conns = EM.instance_variable_get(:@conns) or raise RuntimeError, "EM @conns instance variable not accessible!" |