about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-06 19:45:05 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-06 19:45:05 -0700
commit438c99aec2d74489fa89b3a6c60d1fb41bb2f7e6 (patch)
tree08d263fa35a8d4adce7a81225773589abeffed55 /test
parent89c786d64ddbe74905d37bc0d110771de5f79f49 (diff)
downloadunicorn-438c99aec2d74489fa89b3a6c60d1fb41bb2f7e6.tar.gz
There are existing applications and libraries that don't check
the return value of env['rack.input'].read(length) (like Rails
:x).  Those applications became broken under the IO#readpartial
semantics of TeeInput#read when handling larger request bodies.

We'll preserve the IO#readpartial semantics _only_ when handling
chunked requests (as long as Rack allows it, it's useful for
real-time processing of audio/video streaming uploads,
especially with Rainbows! and mobile clients) but use
read-in-full semantics for TeeInput#read on requests with a
known Content-Length.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions