View Single Post
  #3  
Old 09-10-2009, 09:01 PM
28122008 28122008 is offline
Member
 
Join Date: Dec 2008
Posts: 13
Quote:
Originally Posted by mistwang View Post
Not a perl expert here, just a guess.
the test code may interfere with the FCGI file handle 0 or 1, so it breaks the FCGI protocol. It is not a problem with CGI though.
And it is really a bad idea to start another process for the compression, should use a Perl internal module if available. Or, not to compress it at all and let web server to do it.
I am also not a Perl expert either. Simply picked the code from YaBB which is very old and very popular forum package in Perl. My point here was not regarding the quality of code. I simply wanted to know why CGI is able to do it while FCGI cannot. May be your guess explains that.

But generally speaking, wouldn't this break those Perl scripts which fork processes that output directly to stdout?

-Regards,
Akash
Reply With Quote