From 5c16fb386508de6eccda9d0b1cf3995e98717543 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 2 Nov 2009 01:09:36 -0800 Subject: Rev model is the only user of deferred_bodies We don't use it in EventMachine since EM has its own built-in ways to handle deferred bodies. --- lib/rainbows/ev_core.rb | 1 - lib/rainbows/rev.rb | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rainbows/ev_core.rb b/lib/rainbows/ev_core.rb index d8304a3..9716d6b 100644 --- a/lib/rainbows/ev_core.rb +++ b/lib/rainbows/ev_core.rb @@ -14,7 +14,6 @@ module Rainbows @hp = HttpParser.new @state = :headers # [ :body [ :trailers ] ] :app_call :close @buf = "" - @deferred_bodies = [] # for (fast) regular files only end # graceful exit, like SIGQUIT diff --git a/lib/rainbows/rev.rb b/lib/rainbows/rev.rb index a1a4e6a..c4c77bd 100644 --- a/lib/rainbows/rev.rb +++ b/lib/rainbows/rev.rb @@ -34,6 +34,7 @@ module Rainbows G.cur += 1 super(io) post_init + @deferred_bodies = [] # for (fast) regular files only end # queued, optional response bodies, it should only be unpollable "fast" -- cgit v1.2.3-24-ge0c7