FCGI flushing in Perl is Fixed
Stanley Gambarin (gambarin@OpenMarket.com)
Mon, 24 Feb 1997 14:01:06 -0500
Message-Id: <199702241901.OAA14271@u4-138.openmarket.com>
To: fastcgi-developers@OpenMarket.com
Subject: FCGI flushing in Perl is Fixed
Date: Mon, 24 Feb 1997 14:01:06 -0500
From: Stanley Gambarin <gambarin@OpenMarket.com>
Some of you have reported the problem in the situation where a fastcgi
script does not produce partial output until all the output was produced by
the application. The initial fix to the DrainReqOutBuf() function fixed the
problem for the C language, but not for the Perl. Now, additional fixes to
the FCGI/Perl module, contributed by Sven Verdoolaege, fixed the latter
problem as well. The C fix will make it into the next release of the
mod_fastcgi. In the meantime, you can just add one line to DrainReqOutBuf()
as follows:
if(!reqPtr->connection->aborted) {
bwrite(reqPtr->connection->client, begin, count);
+ bflush(reqPtr->connection->client);
}
BufferToss(infoPtr->reqOutbufPtr, count);
To get Perl running, you need to download and install the new version
of the FCGI.pm (version 0.27) available on CPAN and its mirrors, one of them
ftp://ftp.funet.fi/pub/languages/perl/CPAN/authors/id/SKIMO/FCGI-0.27.tar.gz
The instructions on the installation of the Perl/Sfio/FCGI are located on the
http://www.fastcgi.com/kit/doc/fcgi-perl.htm
Stanley.
--
*******************************************************************************
* To unsubscribe from the fastcgi-developers mailing list *
* mailto: fastcgi-developers-request@openmarket.com *
* with body containing: unsubscribe *
* To request help for using the fastcgi-developers mailing list *
* mailto: fastcgi-developers-request@openmarket.com *
* with body containing: help *
*******************************************************************************
*******************************************************************************
* Stanley Gambarin Open Market Inc. *
* FastCGI (soon-to-be) Guru 245 First St. Cambridge MA 02142 *
* (617) - 949 - 7487 *
* mailto:gambarin@openmarket.com *
* http://acs2.bu.edu:8001/~stanleyg (school) *
* mailto:stanleyg@cs.bu.edu *
*******************************************************************************