From 704f843054f3ca32941d42972a1c7d1b144d06ad Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 9 May 2011 04:39:54 +0000 Subject: configurator: move validation logic over There's actually no reason we can't have these methods in Rainbows::Configurator where it's easier to document nowadays. --- lib/rainbows/ev_core.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/rainbows/ev_core.rb') diff --git a/lib/rainbows/ev_core.rb b/lib/rainbows/ev_core.rb index fb19b04..030c8e1 100644 --- a/lib/rainbows/ev_core.rb +++ b/lib/rainbows/ev_core.rb @@ -9,7 +9,7 @@ module Rainbows::EvCore autoload :CapInput, 'rainbows/ev_core/cap_input' RBUF = "" Z = "".freeze - HBUFSIZ = Rainbows.client_header_buffer_size + Rainbows.config!(self, :client_header_buffer_size) # Apps may return this Rack response: AsyncResponse = [ -1, {}, [] ] ASYNC_CALLBACK = "async.callback".freeze @@ -133,7 +133,7 @@ module Rainbows::EvCore end def mkinput - max = Rainbows.client_max_body_size + max = Rainbows.server.client_max_body_size len = @hp.content_length if len if max && (len > max) -- cgit v1.2.3-24-ge0c7