about summary refs log tree commit homepage
path: root/lib/rainbows/process_client.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rainbows/process_client.rb')
-rw-r--r--lib/rainbows/process_client.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rainbows/process_client.rb b/lib/rainbows/process_client.rb
index 6201064..f30aa5d 100644
--- a/lib/rainbows/process_client.rb
+++ b/lib/rainbows/process_client.rb
@@ -7,10 +7,11 @@ module Rainbows::ProcessClient
   NULL_IO = Unicorn::HttpRequest::NULL_IO
   RACK_INPUT = Unicorn::HttpRequest::RACK_INPUT
   IC = Unicorn::HttpRequest.input_class
+  HBUFSIZ = Rainbows.client_header_buffer_size
 
   def process_loop
     @hp = hp = Rainbows::HttpParser.new
-    kgio_read!(0x1000, buf = hp.buf) or return
+    kgio_read!(HBUFSIZ, buf = hp.buf) or return
 
     begin # loop
       until env = hp.parse