diff options
author | Eric Wong <e@yhbt.net> | 2011-01-17 03:42:33 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-01-17 08:42:56 +0000 |
commit | 810701d939114a5fcdacc55ec383de112c5e3fa4 (patch) | |
tree | b2e44c0cde116366b2aee309b791f4d270b69637 /lib/rainbows/ev_core.rb | |
parent | c7f4ade8edcfa7422d41c4272250b292b141b427 (diff) | |
download | rainbows-810701d939114a5fcdacc55ec383de112c5e3fa4.tar.gz |
Single-threaded concurrency models can reuse a single buffer to avoid thrashing memory and causing unnecessary GC activity.
Diffstat (limited to 'lib/rainbows/ev_core.rb')
-rw-r--r-- | lib/rainbows/ev_core.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rainbows/ev_core.rb b/lib/rainbows/ev_core.rb index a3bf50f..b9b3381 100644 --- a/lib/rainbows/ev_core.rb +++ b/lib/rainbows/ev_core.rb @@ -7,6 +7,7 @@ module Rainbows::EvCore NULL_IO = Unicorn::HttpRequest::NULL_IO HttpParser = Rainbows::HttpParser autoload :CapInput, 'rainbows/ev_core/cap_input' + RBUF = "" # Apps may return this Rack response: AsyncResponse = [ -1, {}, [] ] ASYNC_CALLBACK = "async.callback".freeze |