rev_thread_spawn/revactor: fix TeeInput for short reads
commit8cd6f4d94503a568501b6e24bb785a8e002720c9
authorEric Wong <normalperson@yhbt.net>
Sun, 8 Nov 2009 09:57:14 +0000 (8 01:57 -0800)
committerEric Wong <normalperson@yhbt.net>
Sun, 8 Nov 2009 10:49:14 +0000 (8 02:49 -0800)
tree82c6c2df9ec84038e55e08444a2b505f076ac031
parentb4f1271320d38e83141dbb38463c3a368661aef7
rev_thread_spawn/revactor: fix TeeInput for short reads

Explicitly requested short reads may cause too much data to be
returned, which would be bad and potentially break the
application.  We need to ensure proper IO#readpartial-like
semantics in both of these models.
lib/rainbows/ev_thread_core.rb
lib/rainbows/revactor/tee_input.rb
t/sha1-random-size.ru [new file with mode: 0644]
t/t0102-rack-input-short.sh [new file with mode: 0644]