From c52c26c126f5c7d3871257fa41651fc91ccfd20e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 25 Oct 2009 22:50:59 -0700 Subject: eventmachine 0.12.8 passes all tests This means Rainbows::DevFdBody async responses and large file streaming without slurping. This is only with eventmachine 0.12.8, it looks like 0.12.10 changes the attach/watch API... --- lib/rainbows/http_server.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/rainbows/http_server.rb') diff --git a/lib/rainbows/http_server.rb b/lib/rainbows/http_server.rb index 5521513..4c4b63b 100644 --- a/lib/rainbows/http_server.rb +++ b/lib/rainbows/http_server.rb @@ -33,7 +33,10 @@ module Rainbows extend(mod) Const::RACK_DEFAULTS['rainbows.model'] = @use = model Const::RACK_DEFAULTS['rack.multithread'] = !!(/Thread/ =~ model.to_s) - Const::RACK_DEFAULTS['rainbows.autochunk'] = (model.to_s == "Rev") + case model + when :Rev, :EventMachine + Const::RACK_DEFAULTS['rainbows.autochunk'] = true + end end def worker_connections(*args) -- cgit v1.2.3-24-ge0c7