From: Brian Candler Date: 2004-09-10T17:58:27+09:00 Subject: Re: fastcgi & continuations (Re: Idea: Webshare) On Fri, Sep 10, 2004 at 08:55:55AM +0900, Patrick May wrote: > From what I know of ruby, I think at_exit firing once is a 'bug', even > if it doesn't core dump. I hit this bug while trying matz's fastcgi > trick [ruby-talk:13428]. In that example, continuations are used to > invisibly create a loop in plain cgi script. This allows the script to > become a persistent fastcgi process. That code is a nasty frig though, when you could just replace cgi = CGI::Fast.new with FCGI.each_cgi do |cgi| ... end Furthermore, the code then runs transparently in three different ways: as a regular CGI, as a FastCGI, or from the command-line (enter name=value pairs) Regards, Brian.