diff options
Diffstat (limited to 'lib/rainbows/rev/core.rb')
-rw-r--r-- | lib/rainbows/rev/core.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rainbows/rev/core.rb b/lib/rainbows/rev/core.rb index 9f7a1f0..9f20574 100644 --- a/lib/rainbows/rev/core.rb +++ b/lib/rainbows/rev/core.rb @@ -7,12 +7,13 @@ require 'rainbows/rev/heartbeat' module Rainbows module Rev class Server < ::Rev::IO + include Rainbows::Acceptor G = Rainbows::G # CL and MAX will be defined in the corresponding worker loop def on_readable return if CONN.size >= MAX - io = Rainbows.accept(@_io) and CL.new(io).attach(LOOP) + io = accept(@_io) and CL.new(io).attach(LOOP) end end # class Server |