Displaying 20 results from an estimated 7000 matches similar to: "byte-range requests"
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
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
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 Dec 12
10
sendfile and mongrel
forgive me if this has been resolved already...
I have an app that is using sendfile to return large files to customers.
We can''t use regular Apache to handle this static content since the
files are what the customers are paying for - so it wouldn''t be cool for
anyone else to get access to them.
The issue is that the mongrel mem footprint gets bloated when the files
are
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 Feb 27
15
Deployement options
After reading the digital shortcut and the
documentation on the web site I''m confused.
Which one should I use? pen, balance or nginx ?
I don''t want to use a behemoth like appache and ssl is
not needed so it reduces my choice to those three
only....
What are the pros and cons of each? I don''t have much
money, so the less ressources I use the better it is
for me....
As
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 07
2
Setting headers in sent_file response
I''m having trouble playing a video from my site on the iphone using
send_file. It seems that I''m missing the Accept-Ranges header in my
response. How can I set the Accept-Ranges header in my send_file
response?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To
2006 Sep 12
2
Nginx conf with all the right rules for mongrel_cluster
Folks-
James Cox, Alexy Kovyrin and I all huddled up and got nginx working
perfectly with mongrel cluster and rails page caching. So all static
and cached files are served fast by nginx and anything not static
gets sent to mongrel.
http://brainspl.at/articles/2006/09/12/new-nginx-conf-with-rails-caching
Cheers-
-Ezra
2007 Nov 07
8
mongrel - monit issue
Hi,
was wondering if anyone else had a similar problem and knows why or a solution.
basically my mongrels seems to work fine. i am running three clusters all which are monitored by monit. monit has the ability to restart a mongrel if it doesn''t pass a port connection test. so the problem is that after some time. aprox. 6hrs. to 20hrs. after clusters are started, the mongrels get
2009 Apr 07
5
strategies for securing attachment files from unwanted access
Hi,
we are developing an app for a company and their data has to be
private. There will be different stakeholders with different roles
accesing the application and there will be lots of attachments.
We are using paperclip to upload attachments, which are stored in the
filesystem within the public directory.
Right now, the image_tags are only rendered if you are logged in and
your role allows
2008 Mar 31
14
To surf to URL mydomain.com instead of mydomain.com:3000?
My production server is using mongrel_rails on Ubuntu linux.
With Firefox I can reach my production server with the URL:
www.mydomain.com:3000/
but I can''t reach my production server with the URL
www.mydomain.com/
Is there a way to configure mongrel so that I can reach my
production server with the URL www.mydomain.com?
--
Posted via http://www.ruby-forum.com/.
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
2009 Feb 10
3
clustering and load balancing Apache
Hi,
I am new to clustering and loadbalancing in apache, What is best way of
doing it? How do I do the clustering and what tools do I need to use? Do I
have those tools, I use CentOS , Do i have any tools in CenOs which comes
default in it? And how do I do apache load balancing? should I rely on
apache forums or mailing list or is there any way or tool I can use in
CentOS? Can any throw some vague
2007 May 06
28
mongrel becoming unresponsive
Hello,
I''m running mongrel behind apache via proxypass. Every now and then, a spammer
tries to proxy traffic through apache, and for some reason, apache forwards
the request to mongrel, even though it''s not a site being hosted by me.
At times this seems to cause mongrel to become unresponsive, and all requests
to the site then fail with a proxy error until mongrel is
2006 Aug 22
9
Article: High-Performance Ruby On Rails Setups Test...
This week we have started one new project with Ruby on Rails as primary
framework. My first task was to prepare runtime environment for it on
one of our development servers. When I have tried to research how people
doing it, I noted that there is no information about how to deploy rails
application with nginx as frontend and what is performance of such
solution. Before blindly make any
2007 Mar 07
3
Is there a thread safe ActiveRecord replacement?
I''m using merb as an application server backend for a client application, the goal is to be able to handle thousands of parallell sessions (not parallell requests). It will use sendfile to send files.
The controller uses an singleton that saves sessions in a hash that is memory resident cross requests, but isn''t persistent otherwise.
I''m using ActiveRecord since there
2008 May 06
3
expires header for .css
I''m using mongrel as my http server.
I was using yslow to evaluate the performance of my web site and noticed
I was downloading the .css file on every request??? I use one .css file
for the whole site and I though I would be cached?
Yslow indicates that there is no expires date/time set for the css file.
How can I tell mongrel to send an expires header with my static content?
thanks,
2007 Feb 27
11
Mongrel performing only half as fast as Apache?
I''m trying to do some initial benchmarking of our setup, mainly just to
establish baselines. I''m essentially using the process Zed outlines in a
previous message:
http://rubyforge.org/pipermail/mongrel-users/2006-May/000200.html
What I''m running into is that Mongrel appears only half as fast as Apache
when serving a small static HTML file. If I then add in Apache with
2007 Dec 14
18
Mongrel error : EMFILE too many open files
I have a periodically_call_remote call in a partial running at 0.20
times a second.
<%= periodically_call_remote(:update => ''ack_distance_output'',
:frequency => 0.2,
:url=>{:action => :ackAdjustDistance})
%>
the action looks like this
def ackAdjustDistance
@calMessage = Calibration.getMessage