From: Jim Freeze Date: 2004-05-27T22:24:27+09:00 Subject: Re: WEBrick and FastCGI response On Thursday, 27 May 2004 at 20:56:03 +0900, Zev Blut wrote: > Hello, > > On Thu, 27 May 2004 20:42:00 +0900, Sascha Ebach wrote: > >I would like to know a way how I can query if I am actually using the c > >fastcgi version. > > To make it load the C version change your require statement to: > require 'fcgi.so' Whoa whoa whoa. There is just too many fcgi's floating around here. :) I read about fcgi working with webrick, so I thought cool, I'll try it. So I downloaded it. It didn't have an install, but the install location looked obvious -- I put it under webrick/. Then I noticed that it needed the ruby bindings to fcgi, so I downloaded Matz' ruby bindings to fcgi and tried to install. That didn't work because it couldn't find the fcgi.h include file. So I downloaded the C version of fcgi, built it and installed it. Now Matz' ruby bindings to fcgi installed correctly. So I assumed that the only fcgi core was a C version. What is this about a ruby version of fcgi? Next, I assumed that fcgi would work in webrick if I just required webric/fcgi in my httpservlet. Now I see people adding 'require fcgi' to the already existing 'require cgi' in their .cgi files. Is this really necessary? What about the .rhtml files (ie, those run by erb). Is erb launched for every request, or is this already handled? -- Jim Freeze "First things first -- but not necessarily in that order" -- Dr. Who, "Doctor Who"