Clifford Heath
2007-Aug-30 22:06 UTC
Large POSTs through Apache mod_proxy to mongrel failing
I have an Apache2 server working nicely with mod_proxy pointing at mongrel that''s started using --prefix. One of my forms allows file upload, with the expectation of large files. When I upload a file of 370KB (from Firefox on Mac OS/X), Apache is returning a connection reset error and dropping this in error.log: Connection reset by peer: proxy: prefetch request body failed to localhost from AAA.BBB.CCC.DDD I checked the Apache source code, and there seems to be a 16384 byte buffer which it uses to try to prefetch the POST body so it can send Content-Length. After googling a bit, I tried setting some Apache2 special environment variables that promised to modify the behaviors: SetEnv downgrade-1.0 SetEnv proxy-sendcl SetEnv proxy-sendchunked I tried these one at a time... still get the error. What am I doing wrong? Clifford Heath. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
Clifford Heath
2007-Sep-01 07:14 UTC
Re: Large POSTs through Apache mod_proxy to mongrel failing
Does no-one have an answer for this? Surely other people are uploading large files through Apache mod_proxy? Can you share anything that looks relevant about your Apache config please? I''m really stuck here... Clifford Heath wrote:> I have an Apache2 server working nicely with mod_proxy pointing at > mongrel that''s started using --prefix. One of my forms allows file > upload, with the expectation of large files. When I upload a file of > 370KB (from Firefox on Mac OS/X), Apache is returning a connection > reset error and dropping this in error.log: > > Connection reset by peer: proxy: prefetch request body failed to > localhost from AAA.BBB.CCC.DDD > > I checked the Apache source code, and there seems to be a 16384 byte > buffer which it uses to try to prefetch the POST body so it can send > Content-Length. After googling a bit, I tried setting some Apache2 > special environment variables that promised to modify the behaviors: > > SetEnv downgrade-1.0 > SetEnv proxy-sendcl > SetEnv proxy-sendchunked > > I tried these one at a time... still get the error. > > What am I doing wrong? > > Clifford Heath. > > > > >--~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---