about summary refs log tree commit homepage
path: root/lib/unicorn
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-08-18 15:00:08 -0700
committerEric Wong <normalperson@yhbt.net>2009-08-18 15:00:08 -0700
commit82167684e868e4e501713d2c03b096db6daab0a0 (patch)
tree183e97c5ecbdcb4ae81d2d55ad84927150e66670 /lib/unicorn
parent1aa156429fd926162a112d327dc394cb9772c79c (diff)
downloadunicorn-82167684e868e4e501713d2c03b096db6daab0a0.tar.gz
Allow the --rainbows/-R command-line option to be passed to
activate Rainbows!!!1
Diffstat (limited to 'lib/unicorn')
-rw-r--r--lib/unicorn/rainbows.rb2
-rw-r--r--lib/unicorn/rainbows/request.rb11
2 files changed, 12 insertions, 1 deletions
diff --git a/lib/unicorn/rainbows.rb b/lib/unicorn/rainbows.rb
index 33064c9..39fe29c 100644
--- a/lib/unicorn/rainbows.rb
+++ b/lib/unicorn/rainbows.rb
@@ -62,7 +62,7 @@ module Unicorn
       trap(:USR1) { reopen_worker_logs(worker.nr) }
       trap(:QUIT) { alive = false; LISTENERS.each { |s| s.close rescue nil } }
       [:TERM, :INT].each { |sig| trap(sig) { exit!(0) } } # instant shutdown
-      logger.info "worker=#{worker.nr} ready"
+      logger.info "worker=#{worker.nr} ready with Rainbows"
 
       begin
         Actor.spawn(ready.accept) { |s| process_client(s) }
diff --git a/lib/unicorn/rainbows/request.rb b/lib/unicorn/rainbows/request.rb
new file mode 100644
index 0000000..d2c2c65
--- /dev/null
+++ b/lib/unicorn/rainbows/request.rb
@@ -0,0 +1,11 @@
+module Unicorn
+  class Rainbows
+    class HttpRequest
+
+      def initialize
+      end
+
+    end
+  end
+end
+