David Vallner
2/19/2007 11:12:00 AM
On Mon, 19 Feb 2007 07:18:16 +0100, Aaron Smith =
<beingthexemplary@gmail.com> 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 o=
f
> ruby, when i'm handling a request that was made to an fcgi. Do I handl=
e
> 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 =3D CGI.new. then accessing params and w=
hat
> 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 librar=
y. =
Considering you don't mention doing that, I'm going out on a limb here a=
nd =
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.