From:             barborak at basikgroup dot com
Operating system: Windows XP Pro
PHP version:      6CVS-2007-04-08 (CVS)
PHP Bug Type:     CGI related
Bug description:  FastCGI ISAPI DLL does not flush pipe handles on close

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 bug report at http://bugs.php.net/?id=41024&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=41024&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=41024&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=41024&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=41024&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=41024&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=41024&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=41024&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=41024&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=41024&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=41024&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=41024&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=41024&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=41024&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=41024&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=41024&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=41024&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=41024&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=41024&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=41024&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=41024&r=mysqlcfg

Reply via email to