[Mongrel] mongrel upload progress and nginx
Zed A. Shaw
zedshaw at zedshaw.com
Tue Nov 14 01:51:45 EST 2006
On Mon, 13 Nov 2006 17:52:16 -0500
"William Macfarlane" <wmacfarl at gmail.com> wrote:
> Does anyone know whether the mongrel upload progress plugin works with
> nginx? It works fine for my app under pound, but not with nginx.
> I am using DRb to handle the uploads as detailed at
> http://mongrel.rubyforge.org/docs/upload_progress.html .
> If I am using pound I can see the uploads with irb -r
> lib/upload_client.rb , but cannot if I am using nginx.
> Does anyone know anything more about this behavior or a possible solution?
nginx does buffer the whole request body before sending it to the backends. This is why pound, pen, or balance works but nginx doesn't when you do upload progress. Pretty much the only solution is to put the uploading part on a different box or port and run it directly or behind pound.
Zed A. Shaw, MUDCRAP-CE Master Black Belt Sifu
http://www.awprofessional.com/title/0321483502 -- The Mongrel Book
http://www.lingr.com/room/3yXhqKbfPy8 -- Come get help.
More information about the Mongrel-users