about summary refs log tree commit homepage
path: root/lib/rainbows/rev/core.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rainbows/rev/core.rb')
-rw-r--r--lib/rainbows/rev/core.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rainbows/rev/core.rb b/lib/rainbows/rev/core.rb
index aecd5e8..2273b24 100644
--- a/lib/rainbows/rev/core.rb
+++ b/lib/rainbows/rev/core.rb
@@ -7,12 +7,11 @@ require 'rainbows/rev/heartbeat'
 module Rainbows
   module Rev
     class Server < ::Rev::IO
-      include Rainbows::Acceptor
       # CL and MAX will be defined in the corresponding worker loop
 
       def on_readable
         return if CONN.size >= MAX
-        io = accept(@_io) and CL.new(io).attach(LOOP)
+        io = @_io.kgio_tryaccept and CL.new(io).attach(LOOP)
       end
     end # class Server