tests: "wc -c" portability for *BSDs
[rainbows.git] / lib / rainbows / rev_thread_spawn.rb
blob09036f24f4dcec24d60ccbb255c1710243fda669
1 # -*- encoding: binary -*-
2 Rainbows.const_set(:RevThreadSpawn, Rainbows::CoolioThreadSpawn)
4 # CoolioThreadPool is the new version of this, use that instead.
6 # A combination of the Rev and ThreadSpawn models.  This allows Ruby
7 # Thread-based concurrency for application processing.  It DOES NOT
8 # expose a streamable "rack.input" for upload processing within the
9 # app.  DevFdResponse should be used with this class to proxy
10 # asynchronous responses.  All network I/O between the client and
11 # server are handled by the main thread and outside of the core
12 # application dispatch.
14 # Unlike ThreadSpawn, Rev makes this model highly suitable for
15 # slow clients and applications with medium-to-slow response times
16 # (I/O bound), but less suitable for sleepy applications.
18 # This concurrency model is designed for Ruby 1.9, and Ruby 1.8
19 # users are NOT advised to use this due to high CPU usage.
20 module Rainbows::RevThreadSpawn; end