Re: [Mongrel] problem in downloading large file with apache+mongrel

2010-09-23 Thread Amit Tomar
James Tucker wrote: On 22 Sep 2010, at 12:00, Amit Tomar wrote: luis i change my code as you said filename = #...@stream.location} response.headers['Content-Type'] = application/force-download response.headers['Content-Disposition'] = attachment; filename=\#{File.basename(filename)}\

Re: [Mongrel] problem in downloading large file with apache+mongrel

2010-09-23 Thread James Tucker
On 23 Sep 2010, at 02:42, Amit Tomar wrote: James Tucker wrote: On 22 Sep 2010, at 12:00, Amit Tomar wrote: luis i change my code as you said filename = #...@stream.location} response.headers['Content-Type'] = application/force-download response.headers['Content-Disposition'] =

Re: [Mongrel] problem in downloading large file with apache+mongrel

2010-09-22 Thread Luis Lavena
On Wed, Sep 22, 2010 at 10:01 AM, Amit Tomar li...@ruby-forum.com wrote: hii all, am using apache as frontend to mongrel and loaded xsendfile module in apache ,am looking for 1 GB of download .this is download routine Replied your previous message to the list also. Please provide the answers

Re: [Mongrel] problem in downloading large file with apache+mongrel

2010-09-22 Thread Amit Tomar
Luis Lavena wrote: On Wed, Sep 22, 2010 at 10:01 AM, Amit Tomar li...@ruby-forum.com wrote: hii all, am using apache as frontend to mongrel and loaded xsendfile module in apache ,am looking for 1 GB of download .this is download routine Replied your previous message to the list also.

Re: [Mongrel] problem in downloading large file with apache+mongrel

2010-09-22 Thread Amit Tomar
when i am trying to downnload following happen in logs of apache 127.0.0.1 - - [22/Sep/2010:19:11:12 +0530] GET /streams/download/6598 HTTP/1.1 500 1024 http://src/streams/6598; Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.33

Re: [Mongrel] problem in downloading large file with apache+mongrel

2010-09-22 Thread Luis Lavena
On Wed, Sep 22, 2010 at 10:50 AM, Amit Tomar li...@ruby-forum.com wrote: just now i seen your message... i am running apache 2.2.11 that comes with XAMPP 1.7.1 and mongrel version is 1.1.2, ruby version is ruby 1.8.6 Rails is serving the request, the 1.1GB, not Apache but how do i know

Re: [Mongrel] problem in downloading large file with apache+mongrel

2010-09-22 Thread Amit Tomar
soory but how do i setup s virtual server configuration?? and i have to install that plugin?? -- Posted via http://www.ruby-forum.com/. ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] problem in downloading large file with apache+mongrel

2010-09-22 Thread Amit Tomar
Luis Lavena wrote: On Wed, Sep 22, 2010 at 11:22 AM, Amit Tomar li...@ruby-forum.com wrote: soory but how do i setup s virtual server configuration?? Read apache documentation. and i have to install that plugin?? No, in your controller action set the headers, *do not* install the

Re: [Mongrel] problem in downloading large file with apache+mongrel

2010-09-22 Thread Amit Tomar
Amit Tomar wrote: Amit Tomar wrote: Luis Lavena wrote: On Wed, Sep 22, 2010 at 11:22 AM, Amit Tomar li...@ruby-forum.com wrote: soory but how do i setup s virtual server configuration?? Read apache documentation. and i have to install that plugin?? No, in your controller action set

Re: [Mongrel] problem in downloading large file with apache+mongrel

2010-09-22 Thread Amit Tomar
Amit Tomar wrote: yaa am looking to provide answer for that also memory usage Luis when i download file httpd.exe is varied from at 49,892k to 50,264k while ruby.exe934800 k to 1,208688k -- Posted via http://www.ruby-forum.com/. ___

Re: [Mongrel] problem in downloading large file with apache+mongrel

2010-09-22 Thread Amit Tomar
Amit Tomar wrote: Luis Lavena wrote: On Wed, Sep 22, 2010 at 11:22 AM, Amit Tomar li...@ruby-forum.com wrote: soory but how do i setup s virtual server configuration?? Read apache documentation. and i have to install that plugin?? No, in your controller action set the headers, *do

Re: [Mongrel] problem in downloading large file with apache+mongrel

2010-09-22 Thread Luis Lavena
On Wed, Sep 22, 2010 at 12:01 PM, Amit Tomar li...@ruby-forum.com wrote: Processing StreamsController#download (for 127.0.0.1 at 2010-09-22 20:22:06) [GET]  Parameters: {id=6600}  ?[4;36;1mSQL (0.0ms)?[0m   ?[0;1mSET NAMES 'utf8'?[0m  ?[4;35;1mSQL (0.0ms)?[0m   ?[0mSET SQL_AUTO_IS_NULL=0?[0m

Re: [Mongrel] problem in downloading large file with apache+mongrel

2010-09-22 Thread Amit Tomar
Amit Tomar wrote: Amit Tomar wrote: yaa am looking to provide answer for that also memory usage Luis when i download file httpd.exe is varied from at 49,892k to 50,264k while ruby.exe934800 k to 1,208688k and louis as soon while getting downloded memoryuse of httd.exe is

Re: [Mongrel] problem in downloading large file with apache+mongrel

2010-09-22 Thread Luis Lavena
On Wed, Sep 22, 2010 at 12:29 PM, Amit Tomar li...@ruby-forum.com wrote: Amit Tomar wrote: yaa am looking to provide answer for that also memory usage Luis when i download file httpd.exe  is varied from at 49,892k to 50,264k while ruby.exe                934800 k to 1,208688k That makes

Re: [Mongrel] problem in downloading large file with apache+mongrel

2010-09-22 Thread James Tucker
On 22 Sep 2010, at 12:00, Amit Tomar wrote: luis i change my code as you said filename = #...@stream.location} response.headers['Content-Type'] = application/force-download response.headers['Content-Disposition'] = attachment; filename=\#{File.basename(filename)}\ The problem is here

Re: [Mongrel] problem in downloading large file with apache+mongrel

2010-09-22 Thread Amit Tomar
Amit Tomar wrote: Amit Tomar wrote: Amit Tomar wrote: yaa am looking to provide answer for that also memory usage Luis when i download file httpd.exe is varied from at 49,892k to 50,264k while ruby.exe934800 k to 1,208688k and louis as soon while getting downloded

Re: [Mongrel] problem in downloading large file with apache+mongrel

2010-09-22 Thread Amit Tomar
but louis,how do i force apache to read the file and this problem can occur with Apache also?? -- Posted via http://www.ruby-forum.com/. ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users