fastcgi patch

Richard Browne <[email protected]> Fri, 4 Feb 2011 22:19:10 +1100
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
Hi there

There is a problem with the current fastcgi library that causes an fcgi process to terminate repeatedly when it shouldn't. I believe, but I am not sure, that the problem only manifests on Windows/IIS. I encountered this problem myself with our fastcgi exe, and fortunately someone else already found and fixed the problem last year in Oct 2010.

Here is a link to the relevant discussion on Perl Monks:

http://www.perlmonks.org/?node_id=862506

And here is the patch they made to fix the problem:

http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits/fcgi2.git;a=commitdiff;h=c4d74207308dfafa652925306c6b2828843e0e97

It seems on IIS STDIN must be emptied after each request. I applied this patch and our fcgi exe is now working perfectly on IIS. I thought it would make sense to let the fastcgi maintainers know about this problem so the official sources can be updated.

Kind Regards
-richard browne