Sha256: 0ae847bc24c4d3b1d2ed4810029dadc23a9c14a7990b7f562c0b948473b8008b

Contents?: true

Size: 1.79 KB

Versions: 18

Compression:

Stored size: 1.79 KB

Contents

# -*- encoding: binary -*-
require 'rainbows/coolio_support'

# Implements a basic single-threaded event model with
# {Cool.io}[http://coolio.github.com/].  It is capable of handling
# thousands of simultaneous client connections, but with only a
# single-threaded app dispatch.  It is suited for slow clients and
# fast applications (applications that do not have slow network
# dependencies) or applications that use DevFdResponse for deferrable
# response bodies.  It does not require your Rack application to be
# thread-safe, reentrancy is only required for the DevFdResponse body
# generator.
#
# Compatibility: Whatever Cool.io itself supports, currently Ruby
# 1.8/1.9.
#
# This model does not implement as streaming "rack.input" which
# allows the Rack application to process data as it arrives.  This
# means "rack.input" will be fully buffered in memory or to a
# temporary file before the application is entered.
#
# This model is mostly compatible with users of "async.callback" in
# the Rack environment as long as they do not depend on EventMachine.
#
# === RubyGem Requirements
# * cool.io 1.0.0 or later
module Rainbows::Coolio
  # :stopdoc:
  # keep-alive timeout scoreboard
  KATO = {}

  # all connected clients
  CONN = {}

  if {}.respond_to?(:compare_by_identity)
    CONN.compare_by_identity
    KATO.compare_by_identity
  end

  autoload :Client, 'rainbows/coolio/client'
  autoload :Master, 'rainbows/coolio/master'
  autoload :ThreadClient, 'rainbows/coolio/thread_client'
  autoload :ResponsePipe, 'rainbows/coolio/response_pipe'
  autoload :ResponseChunkPipe, 'rainbows/coolio/response_chunk_pipe'
  autoload :Heartbeat, 'rainbows/coolio/heartbeat'
  # :startdoc:
end
# :enddoc:
require 'rainbows/coolio/server'
require 'rainbows/coolio/core'
Rainbows::Coolio.__send__ :include, Rainbows::Coolio::Core

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
rainbows-4.7.0 lib/rainbows/coolio.rb
rainbows-4.6.2 lib/rainbows/coolio.rb
rainbows-4.6.1 lib/rainbows/coolio.rb
rainbows-4.6.0.4.g4108 lib/rainbows/coolio.rb
rainbows-4.6.0 lib/rainbows/coolio.rb
rainbows-4.5.0 lib/rainbows/coolio.rb
rainbows-4.4.3 lib/rainbows/coolio.rb
rainbows-4.4.2 lib/rainbows/coolio.rb
rainbows-4.4.1.1.gd5c8c lib/rainbows/coolio.rb
rainbows-4.4.1 lib/rainbows/coolio.rb
rainbows-4.4.0 lib/rainbows/coolio.rb
rainbows-4.3.1 lib/rainbows/coolio.rb
rainbows-4.3.0 lib/rainbows/coolio.rb
rainbows-4.2.0 lib/rainbows/coolio.rb
rainbows-4.1.0 lib/rainbows/coolio.rb
rainbows-4.0.0 lib/rainbows/coolio.rb
rainbows-3.4.0 lib/rainbows/coolio.rb
rainbows-3.3.0 lib/rainbows/coolio.rb