summary refs log tree commit homepage
path: root/lib/rainbows/ev_core
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-12-09 17:14:04 -0800
committerEric Wong <normalperson@yhbt.net>2010-12-09 17:14:04 -0800
commit2bb3f8fd600bd0aabe5e4d7c3d1f99d745fc8f49 (patch)
treed497e2b91c4865c3cf8f1027f58e391165e2741a /lib/rainbows/ev_core
parentaf3629e6bd88b5744016a1c6217c00c37ef5a376 (diff)
This is only needed for concurrency options that
do not use TeeInput, since TeeInput automatically
handles this for us.
Diffstat (limited to 'lib/rainbows/ev_core')
-rw-r--r--lib/rainbows/ev_core/cap_input.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/rainbows/ev_core/cap_input.rb b/lib/rainbows/ev_core/cap_input.rb
index a2eecab..4865da4 100644
--- a/lib/rainbows/ev_core/cap_input.rb
+++ b/lib/rainbows/ev_core/cap_input.rb
@@ -1,8 +1,9 @@
 # -*- encoding: binary -*-
 # :enddoc:
 class Rainbows::EvCore::CapInput
-  def initialize(io, client)
-    @io, @client, @bytes_left = io, client, Rainbows.max_bytes
+
+  def initialize(io, client, max)
+    @io, @client, @bytes_left = io, client, max
   end
 
   def <<(buf)