about summary refs log tree commit homepage
path: root/lib/rainbows/event_machine.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rainbows/event_machine.rb')
-rw-r--r--lib/rainbows/event_machine.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rainbows/event_machine.rb b/lib/rainbows/event_machine.rb
index e28b232..2425cf0 100644
--- a/lib/rainbows/event_machine.rb
+++ b/lib/rainbows/event_machine.rb
@@ -190,8 +190,7 @@ module Rainbows
       EM.epoll
       EM.kqueue
       logger.info "EventMachine: epoll=#{EM.epoll?} kqueue=#{EM.kqueue?}"
-      Server.const_set(:MAX, G.server.worker_connections +
-                             HttpServer::LISTENERS.size)
+      Server.const_set(:MAX, worker_connections + LISTENERS.size)
       EvCore.setup(Client)
       EM.run {
         conns = EM.instance_variable_get(:@conns) or