From: Tatsuhiko Miyagawa Date: Mon, 10 May 2010 17:03:44 GMT Subject: Re: gitweb, FastCGI and PSGI/Plack Message-ID: In-Reply-To: <201005101232.32908.jnareb@gmail.com> On Mon, May 10, 2010 at 3:32 AM, Jakub Narebski wrote: >> You have a CGI script and you want to turn it into a PSGI application, >> hence we have CGI::Emulate::PSGI and CGI::Compile. >> >> You usually do not have a FCGI "application". You're writing a .fcgi >> "wrapper" to make your CGI script runnable from a web server (like >> you're doing with gitweb.fcgi). > > After thinking about it a bit, I realized that I don't want to have > Plack::App::WrapFCGI wrapper (which if there are no FastCGI-only Perl > web apps, e.g. using FCGI directly and which do not have support for > running as ordinary CGI would be totally unnecessary), but I want to > avoid price of using CGI::Compile. Yes, that makes sense - if implementing FastCGI is just switching CGI to CGI::Fast and a while loop, implementing PSGI interface just for that is far more complicated. I just argued about it because i saw on a separate thread that PSGI implementation is also on its way. -- Tatsuhiko Miyagawa