summary refs log tree commit homepage
path: root/lib/rainbows/ev_core.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rainbows/ev_core.rb')
-rw-r--r--lib/rainbows/ev_core.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/rainbows/ev_core.rb b/lib/rainbows/ev_core.rb
index d218553..8d3511a 100644
--- a/lib/rainbows/ev_core.rb
+++ b/lib/rainbows/ev_core.rb
@@ -125,6 +125,7 @@ module Rainbows::EvCore
   end
 
   TmpIO = Unicorn::TmpIO
+  CBB = Unicorn::TeeInput.client_body_buffer_size
 
   def io_for(bytes)
     bytes <= CBB ? StringIO.new("") : TmpIO.new
@@ -142,8 +143,4 @@ module Rainbows::EvCore
       max ? CapInput.new(io_for(max), self, max) : TmpIO.new
     end
   end
-
-  def self.setup
-    const_set :CBB, Unicorn::TeeInput.client_body_buffer_size
-  end
 end