* upcoming env['rack.input'] improvements
@ 2010-11-13 0:29 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2010-11-13 0:29 UTC (permalink / raw)
The next versions of Unicorn and Rainbows! will support intentionally
violating the Rack 1.x spec and allowing non-rewindable input bodies
(config directive name not finalized, feedback appreciated)
in the Unicorn/Rainbows! config file. This will allow applications to
handle larger, streamed requests without worrying about disk/memory
usage at all. For Rack 1.x conformance, this rewindable_input directive
true by default (but will probably be off with Rack 2.x).
Rainbows! will also support HTTP/1.1 keepalive for requests with a body,
but only if the body (and trailers) are fully consumed by the
The implementation of Unicorn::TeeInput is also simplified and based on
Unicorn::StreamInput. However there is one minor regression to TeeInput
made in the interest of simplicity that will not noticeable to most
users: calling env['rack.input'].rewind causes the entire request to be
buffered if any data has previously been read off env['rack.input'].
Evented concurrency options (e.g: :Rev and :EventMachine) continue to
buffer the entire body in the existing way, and are unaffected by any
of these changes (except keepalive will always function).
Rainbows! mailing list - rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org
Do not quote signatures (like this one) or top post when replying
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-11-13 0:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-13 0:29 upcoming env['rack.input'] improvements Eric Wong
Code repositories for project(s) associated with this inbox:
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).