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

2010-09-22 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.basena

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

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 get

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 probl

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 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 then clear tha

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 htt

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 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 >  ?[4;36

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

2010-09-22 Thread Amit Tomar
yaa am looking to provide answer for that also memory usage -- 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
Amit Tomar wrote: > Luis Lavena wrote: >> On Wed, Sep 22, 2010 at 11:22 AM, Amit Tomar >> 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, *d

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: > Amit Tomar wrote: >> Luis Lavena wrote: >>> On Wed, Sep 22, 2010 at 11:22 AM, Amit Tomar >>> wrote: soory but how do i setup s virtual server configuration?? >>> >>> Read apache documentation. >>> and i have to install that plugin?? >>> >>> No, in your contro

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

2010-09-22 Thread Luis Lavena
On Wed, Sep 22, 2010 at 12:00 PM, 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] Mongrel service

2010-09-22 Thread Luis Lavena
On Wed, Sep 22, 2010 at 11:12 AM, Gerhard Koekemoer wrote: > Hi Luis > > I have now switched over to Ruby 1.8.7 and Mongrel 1.1.5 and Mongrel Service > 0.4.3.beta3 just to make sure these gems are compatible with each other. > > Running the mongrel_rails start command: "mongrel_rails is not recogn

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 > 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 > plugin.

Re: [Mongrel] Mongrel service

2010-09-22 Thread Gerhard Koekemoer
Hi Luis I have now switched over to Ruby 1.8.7 and Mongrel 1.1.5 and Mongrel Service 0.4.3.beta3 just to make sure these gems are compatible with each other. Running the mongrel_rails start command: "mongrel_rails is not recognized as an internal or external command", is this the error you spoke

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

2010-09-22 Thread Luis Lavena
On Wed, Sep 22, 2010 at 11:22 AM, Amit Tomar 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 plugin. -- Luis Lavena AREA 17 - Perfection in

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 Luis Lavena
On Wed, Sep 22, 2010 at 10:50 AM, Amit Tomar 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 rails is servi

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 Safari

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 > 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 pr

Re: [Mongrel] Mongrel service

2010-09-22 Thread Gerhard Koekemoer
Hi Luis Thanks for the info. The reason that I went for mongrel 1.1.5 is that the mongrel_service 0.4.2.beta3 gem requires it. If I understand you correctly: 1) Because we are runnig ruby 1.9.2 we should run mongrel 1.2.0.pre which does not play nicely with mongrel service (I get an error aski

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 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 to my questions

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

2010-09-22 Thread Amit Tomar
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 def download @stream = Stream.find(params[:id]) send_file(@stream.location,:filename => @stream.name,:disposition > 'attachment',:x_sendfile => true )

Re: [Mongrel] Mongrel service

2010-09-22 Thread Luis Lavena
On Wed, Sep 22, 2010 at 9:33 AM, Gerhard Koekemoer wrote: > Hi all > Environment: > > Windows 7 64 bit > Ruby 1.9.2.p0 > Rails 3 > > I am getting the following error when I run the following command > mongrel_rails service::install -N MyTestApp_4001 -p 4001 –e production: > > “Msvcrt-ruby18.dll i

[Mongrel] Mongrel service

2010-09-22 Thread Gerhard Koekemoer
Hi all Environment: Windows 7 64 bit Ruby 1.9.2.p0 Rails 3 I am getting the following error when I run the following command mongrel_rails service::install -N MyTestApp_4001 -p 4001 -e production: "Msvcrt-ruby18.dll is missing" Thanks in advance Gerhard ___

Re: [Mongrel] [Ruby Forum] Message from user amit-singh

2010-09-22 Thread James Tucker
My guess is middleware is trying to load the file to determine the etag or such. ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] [Ruby Forum] Message from user amit-singh

2010-09-22 Thread Luis Lavena
On Wed, Sep 22, 2010 at 6:13 AM, wrote: >amit-singh sent you the following message: > > >Sorry to send you personal message but its urgent... Please, really, do not email me directly, I can't answer all the questions that are emailed daily. > hii all, > am us