diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-10-06 19:45:05 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-06 19:45:05 -0700 |
commit | 438c99aec2d74489fa89b3a6c60d1fb41bb2f7e6 (patch) | |
tree | 08d263fa35a8d4adce7a81225773589abeffed55 /test | |
parent | 89c786d64ddbe74905d37bc0d110771de5f79f49 (diff) | |
download | unicorn-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