php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41024 FastCGI ISAPI DLL does not flush pipe handles on close
Submitted: 2007-04-08 18:01 UTC Modified: 2010-02-14 20:16 UTC
From: barborak at basikgroup dot com Assigned: dmitry (profile)
Status: Not a bug Package: CGI/CLI related
PHP Version: 6CVS-2007-04-08 (CVS) OS: Windows XP Pro
Private report: No CVE-ID: None
 [2007-04-08 18:01 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-04-12 13:59 UTC] dmitry@php.net
How is it related to PHP?
PHP team doesn't support this ISAPI module.
 [2007-04-20 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2010-02-14 20:16 UTC] pajoye@php.net
Not a php issue.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 10:01:30 2024 UTC