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/epoll/client.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/rainbows/epoll/client.rb') diff --git a/lib/rainbows/epoll/client.rb b/lib/rainbows/epoll/client.rb index 520eb2b..0d6a8c0 100644 --- a/lib/rainbows/epoll/client.rb +++ b/lib/rainbows/epoll/client.rb @@ -10,7 +10,7 @@ module Rainbows::Epoll::Client OUT = SleepyPenguin::Epoll::OUT | SleepyPenguin::Epoll::ET KATO = {} KATO.compare_by_identity if KATO.respond_to?(:compare_by_identity) - KEEPALIVE_TIMEOUT = Rainbows.keepalive_timeout + Rainbows.config!(self, :keepalive_timeout) EP = Rainbows::Epoll::EP @@last_expire = Time.now @@ -33,7 +33,7 @@ module Rainbows::Epoll::Client end def on_readable - case rv = kgio_tryread(HBUFSIZ, RBUF) + case rv = kgio_tryread(CLIENT_HEADER_BUFFER_SIZE, RBUF) when String on_read(rv) return if @wr_queue[0] || closed? -- cgit v1.2.3-24-ge0c7