similar to: Question on supporting sendfile()

Displaying 20 results from an estimated 8000 matches similar to: "Question on supporting sendfile()"

2007 Jun 21
1
x-sendfile horrendously slow?
I''m using Camping (though I suspect this applies to RoR just as well, and if you have an RoR specific answer I''d be happy to hear it, I may switch) to do a number of things for an internal application, one of which is transferring large files (~2GB each) between machines over the network. I thought the easy route would just be to make an app that when given the filename, serves
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
2010 Feb 14
6
Nginx Sock And Rails Envinroment Error
Hi There, Im running an amazon instance with nginx proxying to a unicorn sock. For some reason, even though i specify the production environment, when being visited by nginx, the site shows errors in development form. Interestingly, when running on a port rather than a sock, if i visit that port, the errors are rendered as normal with a 500 page, the same port, throught nginx, shows errors
2012 Dec 06
2
pasenger does not start puppet master under nginx
On the server [root@bangvmpllDA02 logs]# ruby -v ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] [root@bangvmpllDA02 logs]# puppet --version 3.0.1 and [root@bangvmpllDA02 logs]# service nginx configtest nginx: the configuration file /apps/nginx/nginx.conf syntax is ok nginx: configuration file /apps/nginx/nginx.conf test is successful [root@bangvmpllDA02 logs]# service nginx status
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
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
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
2011 Jul 08
2
Puppetmaster setup with separate CA server configuration help
Hi All, I am setting up puppetmaster with nginx and passenger and separating the Puppetmaster primary CA server. I have 3 host loadbalancer01 - Nginx doing LB on IP address and also running puppetmaster with passenger under 127.0.0.1 (port 8140). primaryca - Puppetmaster Primary CA pclient - Puppet Client The did the following steps: On Primary CA server: ---------------------------- cd
2008 Nov 24
1
RELENG_7 panic under load: vm_page_unwire: invalid wire count: 0
Box with fresh RELENG_7 panic under heavy network load (more than 50k connections). This panics seems to be senfile(2) related, because when sendfile disabled in nginx, I can't reproduce the problem. Backtrace in all cases like this: # kgdb kernel /spool/crash/vmcore.1 GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General
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
2006 Dec 07
17
compress and max upload size?
I am using mongrel_cluster with mod_proxy_balancer and would like to enable compression (assuming it improves throughtput) and limit file size upload. I configured mod_deflate and LimitRequestSize in Apache, but in my trials looks like the proxied calls bypass those directives (the conf goes below). Is there a way to get this? -- fxn # Adapt this .example locally, as usual. # # To be
2007 Sep 03
2
Mongrel and Memory usage.
Hi, I am using mongrel for a long time... But just now I see a problem. I am running 3 instances using mongrel_cluster and nginx as a reverse proxy. When I start the cluster I have a memory usage of 20MB per instance... In the end of the day this usage is something about 230MB for each instance. It should be a memory leak? Thanks for the help. -- Fernando Lujan -------------- next part
2006 Feb 01
4
Red Hat and "use sendfile"
Recently I've seen several suggestions on this list for the enabling of "use sendfile" as a means to improve throughput. I thought this was peculiar since the doc says it is enabled by default. I guess it isn't. On both RHEL4 (Samba v3.0.10) and Fedora Core 4 (Samba v3.0.14) the entry for "use sendfile" in the smb.conf says: Default: use sendfile = yes Hmm.
2004 Jun 01
3
1.0-test14: no sendfile() in Solaris 8
Aloha. The current CVS snapshot and 1.0-test14 will not build on Solaris 8 because it does not provide a sendfile() funtion. It just has sendfilev(). Solaris 9 has sendfile(), though. Using the old sendfile-util.c from 1.0-test1 and setting HAVE_SOLARIS_SENDFILEV instead of HAVE_LINUX_SENDFILE in config.h works. Greetings, Andy.
1996 Dec 06
1
Sendfile. beta test
I have found a package called sendfile that let you send files over network. It installs a prog called sendfile to send and a daemon called sendfiled, called on demand by inetd. I''d like to know if this package is security safe C.Leroy Source can be found at URL: ftp://ftp2.ibp.fr/pub/linux/sunsite/Incoming/sendfile-1.5.tar.gz
2006 May 30
2
x-sendfile
I wrote an x-sendfile thing for the railshandler to get mongrel to catch the response header and stream out files from an application I''m writing but I''m pretty sure that zed said he''d built in x-sendfile somewhere already. I couldn''t find it, could someone lead me to it? Does mongrel work with SSL? If not is anyone interested in having someone write in SSL
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 -
2007 Jan 25
4
X-Sendfile doesn''t work
Hi everyone, I try to use the "X-Sendfile" header, but it doesn''t work as expected. In my controller: path = "/home/bruno/file.tar.gz" headers[''X-Sendfile''] = path headers[''Content-Type''] = "application/octet-stream" headers[''Content-Length''] = File.size(path) render :nothing => true When I request
2004 Sep 24
1
sendfile failed
Mates, I'm trying to learn a little more. I have 3.0.7 running on Mandrake 7.2. I could see all the shares, but couldn't access the files "sendfile failed". I set use sendfile = No and all is well. I have a separate system Suse 9.0 pro with use sendfile = yes and I have no problems. What is the difference??? -- David C. Rankin, J.D., P.E. RANKIN * BERTIN, PLLC 510 Ochiltree
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