From: David Vallner Date: 2007-02-19T20:11:35+09:00 Subject: Re: cgi / fcgi? On Mon, 19 Feb 2007 07:18:16 +0100, Aaron Smith wrote: > Forgive me for my newbiness. I've never had to deal with cgi's before. I > understand that fcgi is supposed to make cgi faster. But in the case of > ruby, when i'm handling a request that was made to an fcgi. Do I handle > it through the CGI apis? I don't quite see how to handle one through > fcgi? To me FCGI seems to be just the fcgi server? > > For example, in my fcgi script. I've only been able to figure out how to > grab request data through cgi = CGI.new. then accessing params and what > not through that. Is that correct? > > -thanks. > Your Ruby script needs to run a FCGI binding / listener / dispatcher / whatevertheheck too, which I think [1] provides its own mechanism for doing this, hopefully reasonably compatible with the standard CGI library. Considering you don't mention doing that, I'm going out on a limb here and suspect the superior FCGI process degrades gracefully to regular CGI in your case. David Vallner [1] Can't for the heck of it google up any documentation myself, and don't quite feel like wading through the source in hopes there's rdoc around.