Displaying 20 results from an estimated 2000 matches similar to: "sendfile and mongrel"
2008 Jun 17
6
x_send_file sends a 1 byte file
Hello,
sorry if creating a dupe...
I''m trying to download files to authenticated users in my app. I''ve set
up x_send_file. All seems to be correct to me, however when I try to
download any file, I get a 1-byte long file downloaded.
I am getting this already in development - so no Apache, no lighthttpd,
just a mongrel_rails start in the root of my app.
Any help/hint would be
2007 Jun 10
6
Securing private file area
I''m building an application for a company that has thousands of clients, and
for each client there will a set of documents that are private to that
client. Rails makes it easy, of course, to show the list of documents on a
per-client basis, using acts_as_authenticated and using current_user as part
of the find any time a document list is displayed.
The part for which I''m looking
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
2006 Dec 21
6
Rails'' send_file, Mongrel, and *gasp* memory
I''ve had a right fun few days at work trying to figure out why our Rails
app (which isn''t under very heavy load) kept eating memory and bringing
our server to our knees. Eventually I traced it to send_file (which was
in a way a relief as it wasn''t down to my coding ;) -- every time a user
started downloading, the memory consumed by the app would jump, and
2007 Nov 08
5
byte-range requests
I''m trying to sent a file to the iphone (which requires byte-range
request support) using the rails send_file method. However, this
fails, I think because of mongrel. I think so because if I send the
iphone a file handled by nginx, it plays it fine. But then when I
serve the file with rails the iphone can''t play it.
Any ideas?
Alex
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
2008 Oct 27
8
why can't johnny download?
I''m working on an app that includes the feature to allow user to
download a csv file of their data.
I''ve got it working on my local machine, but when I deploy it, the link
I''m making doesn''t work for doing the download. The file IS being
created in the location I''m intending, but the file download only works
on my local machine and not on the server.
2007 Dec 18
0
Using mod_xsendfile and x_send_file with Mongrel
Can anyone tell me how to get x_send_file working with mongrel 1.1.1
and apache 2.2? I''ve installed the mod_xsendfile apache module from
http://tn123.ath.cx/mod_xsendfile/ and it works fine serving content
from a PHP script, but I can''t get it to work with my single Mongrel
instance and ProxyPass.
I''m using the following Apache configuration:
<VirtualHost *:80>
2007 Feb 13
6
mongrel_cluster 0.2.2 - plugin cluster::status does not exist?
Hello all. I''ve recently installed the 0.2.2 pre-release of
mongrel_cluster to try out the new --clean option. However, after
installing, when I give a simple "mongrel_rails" command, the
cluster::status command is not listed. The error I receive when I do
try and run the full "mongrel_rails cluster::status" is...
ERROR RUNNING
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
2007 Apr 17
7
problem restarting mongrel_cluster outside RAILS_ROOT - patch and other option
Hey folks. Sorry for the SUPER long email but if you''ve been
experiencing the same problems with restarting your mongrel cluster with
Capistrano, then I have two solutions that have worked for me and I''m
pretty sure will for you as well.
THE PROBLEM
I was having trouble restarting my clusters using Capistrano. I''ve seen
this come up before on the mailing list and
2008 Jan 08
4
XSendFile in development environment
Hi
I''m currently trying to use X-Sendfile to take some load off my rails
app, unfortunately in my development environment mongrel is happily
passing through the x-sendfile header, presumably for the (non-
existant) proxy to handle the header.
Is there some way to make mongrel process the x-sendfile header itself?
Thanks
jebw
2004 Dec 20
1
HP-UX/AIX sendfile patches.
I have a fix for the sendfile.c code for HP-UX - length not properly
specified prior to call.
I've also added code to support the AIX send_file() function and
configure.in code to check for AIX specific send_file API and sets
AIX_SENDFILE_API if successful.
Could you consider this patch for 3.0.11?
I also sent a web/cgi.c patch for "struct var" last week with respect to
compile
2006 Nov 02
8
MogileFS handler
Hello,
I''ve been using NFS for sharing files across a cluster of servers but
I''ve had a lot of problems with that. I''m planning to move to MogileFS
which seems to be more stable and more adapted to this usage (lots of
user uploaded files).
I wonder if someone has already worked on an integration of MogileFS
into Mongrel (and Rails app) for serving the files ? If not, I
2006 May 16
5
how to redirect after sendfile?
Greetings!
Is there a way to get RoR to redirect_to another action after doing a sendfile?
My little app lets the user enter a bunch of data and then creates an XML file from it. I''m using sendfile to let the user download the XML file. Once they download the file I want to take them to a new view that presents a logout button that will trigger a cleanup. But it looks like RoR
2007 Oct 29
1
evented mongrel dies on USR2
Sorry if this is the wrong place to ask, but when I run mongrel
evented using swiftiply and then send it the USR2 signal to restart
it, it dies. Without eventing, USR2 restarts mongrel as expected.
Anyone else seen this?
Here''s a dump:
$ EVENT=1 mongrel_rails start -d -P /tmp/m.pid -p 4321
Using Evented Mongrel
** Ruby version is up-to-date; cgi_multipart_eof_fix was not loaded
$ kill
2007 Mar 13
1
Fwd: Re: Basic authentication with Apache and Mongrel
There is a big difference if you are not running a pure rails site. I am doing auth apache-side because I serve static content, perl scripts via cgi and feed the mongrel pack from Apache.
The REMOTE_USER variable value can be passed to rails using a technique described deep down in one of the informative pieces on the Mongrel website.
Bill
On Mon, 12 Mar 2007 17:54:07 -0700, Matte Edens wrote:
2007 May 21
13
swifty fly?
I heard about a new mongrel plugin or version that''s single threaded and
uses non-blocking IO with events. It''s called something like "swifty
fly". Anyone have a link for it?
Thanks.
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
2009 Jan 29
1
a large file available?
I need to deal with a large file (about more than 2G [byte]) with
eventmachine.
I wrote a simple program with using "stream_file_data" as send a large file
from client to server. But It didn''t work.
Applying below a quick fix patch, I think it works well.
Could you go over this patch?
Regards,
--
Kuroishi Mitsuo
diff -rup