about summary refs log tree commit homepage
path: root/lib/rainbows.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rainbows.rb')
-rw-r--r--lib/rainbows.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/rainbows.rb b/lib/rainbows.rb
index 4b8d552..0e6ca39 100644
--- a/lib/rainbows.rb
+++ b/lib/rainbows.rb
@@ -67,6 +67,7 @@ module Rainbows
 
   # :stopdoc:
   class << self
+    attr_accessor :client_header_buffer_size
     attr_accessor :max_bytes, :keepalive_timeout
     attr_accessor :server
     attr_accessor :cur # may not always be used
@@ -81,6 +82,10 @@ module Rainbows
   # the default keepalive_timeout is 5 seconds
   @keepalive_timeout = 5
 
+  # 1024 bytes matches nginx, though Rails session cookies will typically
+  # need >= 1500...
+  @client_header_buffer_size = 1024
+
   # :stopdoc:
   @alive = true
   @cur = 0