Displaying 20 results from an estimated 10000 matches similar to: "Rails'' send_file, Mongrel, and *gasp* memory"
2007 Dec 18
3
Mongrel + Lighttpd
Hi guys,
I''ve been chasing a problem in my web-stack: Lighttpd -> Mongrel ->
Rails, and found a problem with the interaction of Lighttpd and Mongrel.
If a request takes more than 5 seconds, Lighty will retry it - and
then the requests / responses get mixed up in Lighty and it returns a
bad response to the client. Not good.
I''m convinced that the problem is
2006 Jun 26
4
Missing Content-Length header with lighttpd
We have our rails application running using lighttpd and everything
seems fine with Firefox, but when the client is Explorer some media
doesn''t get transferred from the server correctly. With Webrick,
Content-Length is set when a request is made for an mp3 file. Using
Firefox with lighttpd, Transfer-Encoding is set to chunked, so the
Content-Length field isn''t required.
2007 Nov 05
29
Mongrel and memory usage
Hello,
I''m running a Rails application which must sort and manipulate a lot of data
which are loaded in memory.
The Rails app runs on 2 mongrel processes.
When I first load the app, both are 32Mb in memory.
After some days, both are between 200Mb and 300Mb.
My question is : is there some kind of garbage collector in Mongrel?
I never see the two Mongrel processes memory footprint
2007 Aug 19
16
Possible memory leak problem...
I''m trying to figure out a possible memory leak problem I have in my
application.
I''ve tested both with mongrel and webrick and the problem remains. So
I think it''s not a mongrel problem, but I''m posting here to see if
anybody can help me.
The RAILS application is quite simple, no special plugins ( no
RMagick that has the memory problem ),
2006 Mar 20
16
Secret URLs and file downloads
I''m looking to do something similar to the "secret URLs" in Rails
Recipes, however, with file downloads. I want to avoid providing direct
URLs to people if possible.
I have files on disk in public/, so it would be good if each user got a
"unique" URL to each file that they are permitted to see (dealt with by
a user_id/file_id table). Then they are only allowed
2006 Apr 11
7
Offering downloads only to registered users
I''m writing an app for a blood exam center, where people can go and check
the results without going physically there. The customers log in the system
and a pdf download is offered to them. The downloads though will not be
stored in the db but in the filesystem.
How can I allow people to download files only if they''re authorised? I
obviously can''t store all the files in
2007 Apr 23
4
send_file pdf problem
Hi,
I am using send_file to allow users to download files from my website,
please see code beloe:
def download_document
send_file("#{RAILS_ROOT}/public/test_form.pdf",
:filename => "test.pdf",
:type => ''application/pdf'',
:disposition => ''attachment'',
:streaming
2007 Nov 08
5
Rails byte-range request support
Hi,
I''m trying to serve the iPhone a video file from my controller using
send_file. However, it appears as thought the iPhone requires byte-
range request support and rails doesn''t seem to support this.
If I give the iPhone a url that points to an actual file (i.e. it''s
served by my webserver nginx, instead of rails) it downloads and plays
it fine.
Here is the proof
2006 Mar 27
2
Mongrel Web Server 0.3.12 -- Pre-Release
Hello Everyone,
Mongrel is due for a 0.3.12 release which will feature some pretty insane
goodies for everyone. There''s talk of IOWA support, lots of speed
improvements (including sendfile support), a great Configurator which makes
configuring Mongrel a snap (especially for framework implementers), and a
ton of debugging stuff.
WARNING
This is a pre-release announcement for the
2006 May 14
3
send_file and locking files after download?
Hello,
I''m working on a download service which grants users a one-time-download
access to files. The idea is to write an entry to a database table after
a successful download that "locks" the download link for the user.
After doing some quick tests with send_file I noticed that send_file
does not block until the user has downloaded the full file, but proceeds
with the
2007 Feb 27
2
send_file and ZIP files
I have an application which uses send_file to send a ZIP file to the
client. This works nicely when it''s run on our development OS-X
boxes, using mongrel from script/server, but on our production
server, using mongrel behind Apache 2.2. with mod_proxy_balancer, the
client gets 1 byte delivered :-(
If I use wget -S to the URL in order to see the full headers I see
this on
2006 Jul 17
6
Rails+Mongrel+Lighthttpd: Ruby-Sendfile Problem
Hello,
I have a working mongrel cluster and want to use Lighty as the frontend
webserver. I want ligthttpd to deliver the static content.
So I did
gem install sendfile --remote
Everything installed.
But if I run the tests like
gem check sendfile --test --debug
i get the following error message:
Exception `Errno::ENOSYS'' at ./test/test_sendfile.rb:75 - Function not
implemented -
2006 Mar 30
25
Mongrel Web Server 0.3.12 -- Finally Out
Hello Folks,
This is the long awaited (like 2 weeks) 0.3.12 release of Mongrel. This
release has received heavier testing than previous releases and supports a
whole raft of improvements to existing functionality plus some new stuff.
For those not clued in, Mongrel is a web server written in (mostly) Ruby.
Check the funny dogs and read the docs about it at
http://mongrel.rubyforge.org/. The
2006 Aug 01
6
[OT] PDF''s not Downloading in Win/IE
I have a Rails app that''s working perfectly (http://amuinsurance.com), but on
Windows IE and no other browser, if I go for the URL:
http://amuinsurance.com/content/marine_insurance.pdf
--
View this message in context: http://www.nabble.com/-OT--PDF%27s-not-Downloading-in-Win-IE-tf2034599.html#a5597794
Sent from the RubyOnRails Users forum at Nabble.com.
2006 Jan 12
2
ActionController#send_file
Looking at the code for ActionController#send_file I see that it is
using ruby to send the file contents. Linux supports a sendfile() OS
call. The implementation of Linux sendfile() is extremely fast and
very CPU efficient, far faster than what can be done in user space.
Does Windows support a sendfile() equivalent call? I haven''t been
working with ruby long enough to know how it handles
2006 Apr 20
21
Can someone please explain Lighttpd + Mongrel + Rails.
I know that Mongrel is a web server that hosts rails applications. But
i don''t understand what part Lighttpd (or Apache) has in the setup. I
know that you can use Mongrel on its own. What does Lighttpd improve
on?
Thanks,
Chris
--
Posted via http://www.ruby-forum.com/.
2006 Apr 15
9
Mongrel in Production ?
Hi Everyone,
I was setting up Lighty+Fcgi on our server for last *couple* ( read
zillion ) of hours. I had posted my problems in my previous email. But
all in vain..
So, for time being, I switched to Mongrel. And the performance seemed
quite good. This is the first time ever I''m using mongrel ( Awesome
stuff ZedShaw..Thanks! ). I''m wondering if there are many people
around
2006 Aug 16
18
mongrel lighttpd and ssl
I am wanting to one run instance of lighttpd, many many instances of
mongrel. I also need ssl but only for one of my sites. I understand that
Mongrel does not play with SSL so I am forced to use Lighttpd. I think that
lighttpd only handles ssl or non-ssl on any given instance. Is there a way
for me to accomplish my goal of one lighttpd with multiple mongrels and the
occasional ssl connection?
--
2006 Apr 26
8
script/server lighttpd on Windows
Has anyone been able to get script/server to successfully use lighttpd
on a Windows box? When I try to start the server I get:
PROBLEM: Lighttpd is not available on your system (or not in your path)
So then I add "C:\lighttpd\sbin" to the path for the console session,
and it still fails with the same error.
If anyone has some success with this I sure would like to know. Webrick
2006 Jan 19
10
Where to place uploaded files for later download?
Hi there,
I am working in a RoR application which allows certain users
to upload files. Currently I store these files
in a directory called "files". This directory is located in
the RoR application directory:
rails/rails_application/files
So users don''t have access to them.
Now I want users to be able to download some of these files
(they will search based on some