about summary refs log tree commit homepage
path: root/lib/rainbows/rev/core.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-07-05 08:07:03 +0000
committerEric Wong <normalperson@yhbt.net>2010-07-05 08:07:03 +0000
commit70ad994ae8a854477e45c877cd0e9dda41389f86 (patch)
tree9985ad0b56eda5e72341987255640cf9e34411b3 /lib/rainbows/rev/core.rb
parent39b178cdebe275cbc8ce19cf269bea7cd15ff4ca (diff)
downloadrainbows-70ad994ae8a854477e45c877cd0e9dda41389f86.tar.gz
We need to load sendfile-using parts after the
"sendfile" library is loaded.
Diffstat (limited to 'lib/rainbows/rev/core.rb')
-rw-r--r--lib/rainbows/rev/core.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rainbows/rev/core.rb b/lib/rainbows/rev/core.rb
index 7457f12..2488cf2 100644
--- a/lib/rainbows/rev/core.rb
+++ b/lib/rainbows/rev/core.rb
@@ -23,6 +23,8 @@ module Rainbows
       # given a INT, QUIT, or TERM signal)
       def worker_loop(worker)
         Rainbows::HttpResponse.setup(Rainbows::Rev::Client)
+        require 'rainbows/rev/sendfile'
+        Rainbows::Rev::Client.__send__(:include, Rainbows::Rev::Sendfile)
         init_worker_process(worker)
         mod = self.class.const_get(@use)
         rloop = Server.const_set(:LOOP, ::Rev::Loop.default)