![]() |
Gzip output script works with Perl-CGI but gives error with Perl-FCGI..
Hi there,
I was trying to install popular perl based forum YaBB on a Litespeed installation. It worked well when I was running Perl in CGI mode but started giving blank pages when I switched to FCGI using lsperld. After some debugging I found out that its the GZIP code which is causing this and wrote a simple script to reproduce the error: Code:
#!/usr/bin/perl --Is there anyway to rectify this? -Regards, Akash |
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. |
Quote:
But generally speaking, wouldn't this break those Perl scripts which fork processes that output directly to stdout? -Regards, Akash |
| All times are GMT -7. The time now is 12:50 AM. |