1 # -*- encoding: binary -*-
2 require 'rainbows/rev/core'
3 require 'rainbows/rev/client'
4 require 'rainbows/rev/deferred_response'
8 # Implements a basic single-threaded event model with
9 # {Rev}[http://rev.rubyforge.org/]. It is capable of handling
10 # thousands of simultaneous client connections, but with only a
11 # single-threaded app dispatch. It is suited for slow clients and
12 # fast applications (applications that do not have slow network
13 # dependencies) or applications that use DevFdResponse for deferrable
14 # response bodies. It does not require your Rack application to be
15 # thread-safe, reentrancy is only required for the DevFdResponse body
18 # Compatibility: Whatever \Rev itself supports, currently Ruby
21 # This model does not implement as streaming "rack.input" which
22 # allows the Rack application to process data as it arrives. This
23 # means "rack.input" will be fully buffered in memory or to a
24 # temporary file before the application is entered.
28 # keep-alive timeout scoreboard
31 # all connected clients
34 if {}.respond_to?(:compare_by_identity)
35 CONN.compare_by_identity
36 KATO.compare_by_identity