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/epoll | |
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/epoll')
-rw-r--r-- | lib/rainbows/epoll/client.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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? |