diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-05-09 04:39:54 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-05-10 08:20:27 +0000 |
commit | 704f843054f3ca32941d42972a1c7d1b144d06ad (patch) | |
tree | 2e7fea212988a9a67b7cdfab3ef939a221448e65 /lib/rainbows/xepoll_thread_pool/client.rb | |
parent | 598525843ee1d120fd9878011ca2b6328c2cf95f (diff) | |
download | rainbows-704f843054f3ca32941d42972a1c7d1b144d06ad.tar.gz |
There's actually no reason we can't have these methods in Rainbows::Configurator where it's easier to document nowadays.
Diffstat (limited to 'lib/rainbows/xepoll_thread_pool/client.rb')
-rw-r--r-- | lib/rainbows/xepoll_thread_pool/client.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rainbows/xepoll_thread_pool/client.rb b/lib/rainbows/xepoll_thread_pool/client.rb index 1bfb1c2..f871e56 100644 --- a/lib/rainbows/xepoll_thread_pool/client.rb +++ b/lib/rainbows/xepoll_thread_pool/client.rb @@ -3,7 +3,7 @@ # FIXME: lots of duplication from xepolll_thread_spawn/client module Rainbows::XEpollThreadPool::Client - HBUFSIZ = Rainbows.client_header_buffer_size + Rainbows.config!(self, :keepalive_timeout, :client_header_buffer_size) N = Raindrops.new(1) ACCEPTORS = Rainbows::HttpServer::LISTENERS.dup extend Rainbows::WorkerYield @@ -66,7 +66,7 @@ module Rainbows::XEpollThreadPool::Client def self.expire return if ((now = Time.now) - @@last_expire) < 1.0 - if (ot = Rainbows.keepalive_timeout) >= 0 + if (ot = KEEPALIVE_TIMEOUT) >= 0 ot = now - ot defer = [] LOCK.synchronize do @@ -101,7 +101,7 @@ module Rainbows::XEpollThreadPool::Client end def epoll_run(buf) - case kgio_tryread(HBUFSIZ, buf) + case kgio_tryread(CLIENT_HEADER_BUFFER_SIZE, buf) when :wait_readable return kato_set when String |