about summary refs log tree commit homepage
path: root/lib/rainbows/http_parser.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rainbows/http_parser.rb')
-rw-r--r--lib/rainbows/http_parser.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/rainbows/http_parser.rb b/lib/rainbows/http_parser.rb
new file mode 100644
index 0000000..ec55fe9
--- /dev/null
+++ b/lib/rainbows/http_parser.rb
@@ -0,0 +1,12 @@
+# -*- encoding: binary -*-
+# :enddoc:
+# avoid modifying Unicorn::HttpParser
+class Rainbows::HttpParser < Unicorn::HttpParser
+  def self.quit
+    alias_method :next?, :never!
+  end
+
+  def never!
+    false
+  end
+end