From: Michael Neumann Date: 2001-07-17T17:48:40+09:00 Subject: [ruby-talk:17971] Re: FastCGI for Ruby? Eli Green wrote: > Hey there. A few weeks back, when I was searching for Ruby-related stuff, I > came across a reference to a 'fastcgi.so', and was interested. However, I > haven't seen/heard of it recently. > > So I went and wrote a FastCGI implementation in Ruby. Is this the least bit > useful to anybody? If it is, I'll put it online someplace. Yes, I'd like to see/use it. Well, there is already a working FastCGI module for Ruby, but know what's missing it. See http://www.ruby-lang.org/~knu/cgi-bin/cvsweb.cgi/lib/fcgi I've written a short documentation for it: http://www.s-direktnet.de/homepages/neumann/fcgi-ruby-doc/fcgi.html Apply also this patch to fcgi.c: *** fcgi.c Tue Jul 17 10:41:28 2001 --- fastcgi/devkit_2.2.0/fcgi-ruby-0.1/fcgi.c Mon Feb 12 18:05:56 2001 *************** *** 104,110 **** rb_raise(eFCGIStreamProtocolError, "protocol error");\ break;\ case FCGX_PARAMS_ERROR:\ ! rb_raise(eFCGIStreamProtocolError, "parameter error");\ break;\ case FCGX_CALL_SEQ_ERROR:\ rb_raise(eFCGIStreamCallSeqError, "preconditions are not met");\ --- 104,110 ---- rb_raise(eFCGIStreamProtocolError, "protocol error");\ break;\ case FCGX_PARAMS_ERROR:\ ! rb_raise(eFCGIStreamParamsError, "parameter error");\ break;\ case FCGX_CALL_SEQ_ERROR:\ rb_raise(eFCGIStreamCallSeqError, "preconditions are not met");\ Regards, Michael -- Michael Neumann merlin.zwo InfoDesign GmbH http://www.merlin-zwo.de