[Mongrel] Chunked transfer
normalperson at yhbt.net
Thu Jun 17 16:40:36 EDT 2010
Sergio Lombrico <sergio.lombrico at gmail.com> wrote:
> Does mongrel support 'chunked' transfer encoding ?
Not for requests, but of course it can generate chunked responses.
> We are sending images from a J2ME app, but do not seem to be able to read
> the entire xml message that gets sent from the mobile device. The message is
> posted to our RoR app running on a mongrel server.
Rainbows! and Zbatery both support chunked requests using the HTTP
parser found in Unicorn (which is descended from the Mongrel parser).
The ThreadSpawn concurrency model with Rainbows!/Zbatery is similar
to Mongrel, and can handle slow clients reasonably well. Both Rainbows!
and Zbatery work great on *nix, and Zbatery _may_ work on Win32 as well.
Unicorn itself is only designed to run behind nginx, so it is wasteful
if you're dealing with slow connections from a J2ME mobile app. I don't
remember nginx being able to parse chunked requests, but that may have
changed. The added benefit of Rainbows!/Zbatery is they can read and
process the chunked request in your app incrementally while it's being
 http://zbatery.bogomip.org/ (no, not a typo :)
More information about the Mongrel-users