[Mongrel] Setup with Apache 2.2 proxy balancer : timeout during uploads

Philippe Jayet hip at lan-attack.ch
Fri Sep 1 08:42:55 EDT 2006


> Yes, Mongrel processes the full request, including uploaded body before
> calling rails (and locking it).  If the request is large then it also
> streams the result to a tmpfile in order to not use up ram.

You're doing an amazing job Zed :)

> The response Rails generates is placed into an internal buffer and then
> when Rails is done Mongrel unlocks rails and spends the rest of it's
> time sending back the response.  This is necessary so that Rails can be
> locked for the shortest amount of time.

How does it interact with send_file and send_data? Which method is the
best to use to serve files of serveral MB?

Thanks for your help,

Philippe J.


More information about the Mongrel-users mailing list