remove unnecessary "::" constant prefixing
[rainbows.git] / lib / rainbows / rev / server.rb
blobb75e593fe2f4133a29895bac28f885fa8b7781bb
1 # -*- encoding: binary -*-
2 # :enddoc:
3 class Rainbows::Rev::Server < Rev::IO
4   CONN = Rainbows::Rev::CONN
5   # CL and MAX will be defined in the corresponding worker loop
7   def on_readable
8     return if CONN.size >= MAX
9     io = @_io.kgio_tryaccept and CL.new(io).attach(LOOP)
10   end
11 end