Sha256: ec5fbcb310904e8b5c005aa22c6b6853e5f19ba43319e9267f94c0305d11e566

Contents?: true

Size: 295 Bytes

Versions: 28

Compression:

Stored size: 295 Bytes

Contents

# -*- encoding: binary -*-
# :enddoc:
class Rainbows::Coolio::Server < Coolio::IO
  CONN = Rainbows::Coolio::CONN
  # CL and MAX will be defined in the corresponding worker loop

  def on_readable
    return if CONN.size >= MAX
    io = @_io.kgio_tryaccept and CL.new(io).attach(LOOP)
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
rainbows-5.2.1 lib/rainbows/coolio/server.rb
rainbows-5.2.0 lib/rainbows/coolio/server.rb
rainbows-5.1.1 lib/rainbows/coolio/server.rb
rainbows-5.1.0 lib/rainbows/coolio/server.rb
rainbows-5.0.0.5.ge717 lib/rainbows/coolio/server.rb
rainbows-5.0.0 lib/rainbows/coolio/server.rb
rainbows-4.7.0 lib/rainbows/coolio/server.rb
rainbows-4.6.2 lib/rainbows/coolio/server.rb
rainbows-4.6.1 lib/rainbows/coolio/server.rb
rainbows-4.6.0.4.g4108 lib/rainbows/coolio/server.rb
rainbows-4.6.0 lib/rainbows/coolio/server.rb
rainbows-4.5.0 lib/rainbows/coolio/server.rb
rainbows-4.4.3 lib/rainbows/coolio/server.rb
rainbows-4.4.2 lib/rainbows/coolio/server.rb
rainbows-4.4.1.1.gd5c8c lib/rainbows/coolio/server.rb
rainbows-4.4.1 lib/rainbows/coolio/server.rb
rainbows-4.4.0 lib/rainbows/coolio/server.rb
rainbows-4.3.1 lib/rainbows/coolio/server.rb
rainbows-4.3.0 lib/rainbows/coolio/server.rb
rainbows-4.2.0 lib/rainbows/coolio/server.rb