I''m using Rails 1.1.6 and have a weird problem with send_file both with Webrick and Mongrel_rails. Even though the documentation explicitely tells that the file is streamed to the client, webrick or mongrel process sizes are growing to ~300MB when I use send_file with a ~256MB file. Adding :stream => true (I tried even though it is the default) doesn''t change anything. Is send_file known to be broken ? Lionel. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On 10/12/06, Lionel Bouton <lionel-subscription-WTamNBQcZIx7tPAFqOLdPg@public.gmane.org> wrote:> > I''m using Rails 1.1.6 and have a weird problem with send_file both with > Webrick and Mongrel_rails. > > Even though the documentation explicitely tells that the file is > streamed to the client, webrick or mongrel process sizes are growing to > ~300MB when I use send_file with a ~256MB file. > Adding :stream => true (I tried even though it is the default) doesn''t > change anything. > > Is send_file known to be broken ?Mongrel buffers the Rails response before sending it, so streaming is useless. Use the X-Sendfile header if your Mongrel is fronted by Apache2 or Lighttpd. jeremy --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
lionel.bouton-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Oct-14 00:47 UTC
Re: send_file problem
X-Sendfile doesn''t work with lighttpd-1.4.13''s mod_proxy (nor does the X-LIGHTTPD-send-file header). I only managed to make it work with mod_fastcgi -> no X-Sendfile with mongrel and lighttpd. BTW, I''m really pissed off by google''s handling of the list. As my message didn''t come back to me, I checked on groups.google.fr and there was my message with an answer although more than 30 hours later my mailbox is still waiting. I''ve seen other reports of such behaviour before, it seems some members are out of luck for unknown reasons (if someone knows, please enlighten me). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---