#41024 [Asn->Fbk]: FastCGI ISAPI DLL does not flush pipe handles on close
| From: | dmitry@php.net | Date: | Thu, 12 Apr 2007 13:59:36 +0000 |
| Subject: | #41024 [Asn->Fbk]: FastCGI ISAPI DLL does not flush pipe handles on close | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-111403@lists.php.net to get a copy of this message | ||
ID: 41024
Updated by: dmitry@php.net
Reported By: barborak at basikgroup dot com
-Status: Assigned
+Status: Feedback
Bug Type: CGI related
Operating System: Windows XP Pro
PHP Version: 6CVS-2007-04-08 (CVS)
Assigned To: dmitry
New Comment:
How is it related to PHP?
PHP team doesn't support this ISAPI module.
Previous Comments:
------------------------------------------------------------------------
[2007-04-08 18:01:06] barborak at basikgroup dot com
Description:
------------
Using the FastCGI ISAPI DLL with IIS 5 on Windows XP Professional to
support dynamic servers written in Perl and using the FCGI Perl module
works pretty well but there is an intermittent problem where the results
are not completely written to the client. That is, a FastCGI request is
handled correctly by the Perl program and a complete response is sent to
the FastCGI ISAPI DLL (as I confirmed with a logging version of this
DLL) but the complete response does not make it to the browser. I am no
Windows guru, but I believe the problem is because the handle between
the FastCGI ISAPI DLL and IIS is closed without first being flushed. By
adding a call to FlushFileBuffers before the call to CloseHandle in
OS_Close of fastcgi-isapi/libfcgi/os_win32.c, I no longer see this
intermittent problem.
If you are interested in this patch, I have posted it here:
http://www.basikgroup.com/temp/fastcgi_isapi_flush_patch.txt
Thanks,
Mike
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41024&edit=1