summary refs log tree commit homepage
path: root/lib/rainbows/max_body
AgeCommit message (Collapse)AuthorFilesLines
2011-02-06kill some unnecessary &block usageEric Wong1-1/+1
We were needlessly allocating objects even when using yield.
2010-11-19max_body: rewrite wrappers to be saferEric Wong2-11/+56
To avoid denial-of-service attacks, the wrappers need to intercept requests *before* they hit the memory allocator, so we need to reimplement the read(all) and gets cases to use smaller buffers whenever the application does not specify one.
2010-11-16reimplement client_max_body_size handlersEric Wong2-0/+43
This allows the client_max_body_size implementation to not rely on Unicorn::TeeInput internals, allowing it to be used with Unicorn::StreamInput (or any other (nearly) Rack::Lint-compatible input object).