Zed A. Shaw
2005-Sep-13 04:16 UTC
[ANN] scgi_rails 0.2 with (hopefully) initial win32 support
Hi All, This is a lightly tested release of my Pure Ruby SCGI Rails runner that should fix some bugs reported by people and make it work on win32. Problem is, I don''t have my (dusty) win32 box working with Ruby yet, so testers are wanted. Fixers would be better, but testers will be good too. Grab it at: http://www.zedshaw.com/downloads/scgi_rails/scgi_rails-0.2.tar.bz2 and try to break it please. === Changes == The following things were fixed up: * Better exception catching so that it won''t crash during errors, instead logging them to scgi.log * SIGINT now just logs a shutdown message rather than an exception. * If your system doesn''t support SIGHUP then you are just warned and status won''t work. * Some fixes to the payload parsing so that if someone sends you a massive netstring it will abort their request. This comes down to requests of 9999999999 bytes in size will be rejected. If you need bigger then you also need an intervention. * Slight speed improvement by connecting the output of CGI directly to the socket. Not sure what this will cause for problems, so testing is in order. === WIN32 Warning == Since win32 doesn''t support fork, you''re only option is to run it with: ruby scgi_rails -e production -D Otherwise it _should_ work. === What Is It? == SCGI is a replacement for FastCGI. The scgi_rails script is a single script that implements SCGI which competes with most FastCGI tests I can run for performance. The scgi_rails script is pure Ruby and very small so people should be able to steal it and make it faster or more stable. As usual, your feedback and bug requests are welcome. Next up is figuring out how to make this work as a win32 service and to test more heavily on more platforms. One big question is how complex Rails applications will work with Thread based processing. I know I saw an option for that someplace. Zed A. Shaw http://www.zedshaw.com/
hi Zed,I got: C:\nx\jwc2005>ruby scgi_rails start -e production -D ERROR: undefined local variable or method `log'' for #<StartCommand:0x2830098> 2005/9/13, Zed A. Shaw <zedshaw-dd7LMGGEL7NBDgjK7y7TUQ@public.gmane.org>:> Hi All, > > This is a lightly tested release of my Pure Ruby SCGI Rails runner that should fix some bugs reported by people and make it work on win32. Problem is, I don''t have my (dusty) win32 box working with Ruby yet, so testers are wanted. Fixers would be better, but testers will be good too.
it is a little bug at line 278,change "log" to "$log" WOW,it is running! 2005/9/13, hui <fortez-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> hi Zed,I got: > > C:\nx\jwc2005>ruby scgi_rails start -e production -D > ERROR: undefined local variable or method `log'' for #<StartCommand:0x2830098> > > 2005/9/13, Zed A. Shaw <zedshaw-dd7LMGGEL7NBDgjK7y7TUQ@public.gmane.org>: > > Hi All, > > > > This is a lightly tested release of my Pure Ruby SCGI Rails runner that should fix some bugs reported by people and make it work on win32. Problem is, I don''t have my (dusty) win32 box working with Ruby yet, so testers are wanted. Fixers would be better, but testers will be good too. >
C:\nx\jwc2005>ruby scgi_rails start -e production -D Listening on 0.0.0.0:9999 for SCGI connections. CTRL-C to stop. 2005/9/13, hui <fortez-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> it is a little bug at line 278,change "log" to "$log" > WOW,it is running!
Zed A. Shaw
2005-Sep-13 12:37 UTC
Re: [ANN] scgi_rails 0.2 with (hopefully) initial win32 support
Great, I''ll update and then work on the forking problem. On Tue, 13 Sep 2005 17:26:45 +0800 hui <fortez-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> C:\nx\jwc2005>ruby scgi_rails start -e production -D > Listening on 0.0.0.0:9999 for SCGI connections. CTRL-C to stop. > > 2005/9/13, hui <fortez-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > > it is a little bug at line 278,change "log" to "$log" > > WOW,it is running! > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails