#42013 [Asn->Bgs]: flush() does not flush with FastCGI

From: Date: Wed, 25 Jul 2007 11:31:32 +0000
Subject: #42013 [Asn->Bgs]: flush() does not flush with FastCGI
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-115420@lists.php.net to get a copy of this message
ID: 42013 Updated by: dmitry@php.net Reported By: jani@php.net -Status: Assigned +Status: Bogus Bug Type: CGI related Operating System: Linux (FC 6) PHP Version: 5CVS-2007-07-16 (CVS) Assigned To: dmitry New Comment: PHP itself works fine. The "strace" of PHP process shows that each line is sent separatly. write(4, "\1\6\324\224\0r\6\0X-Powered-By: PHP/5.2.4-"..., 128) = 128 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({1, 0}, {1, 0}) = 0 write(4, "\1\6\324\224\0,\4\0 ----------------- 2 ---"..., 56) = 56 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({1, 0}, {1, 0}) = 0 write(4, "\1\6\324\224\0,\4\0 ----------------- 3 ---"..., 56) = 56 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({1, 0}, {1, 0}) = 0 write(4, "\1\6\324\224\0,\4\0 ----------------- 4 ---"..., 56) = 56 The problem may be in Web Browser, Web Server or FastCGI manager. Previous Comments: ------------------------------------------------------------------------ [2007-07-23 09:17:13] jani@php.net Dmitry, can you check this out please? My debugging of it failed miserably.. :( ------------------------------------------------------------------------ [2007-07-16 22:29:36] jani@php.net See also bug #34429 ------------------------------------------------------------------------ [2007-07-16 22:29:10] jani@php.net Description: ------------ The following script works with plain CGI setup. It also works fine with Apache 2.2 module. It does not work with FastCGI setup. Regression of ug #34429 Reproduce code: --------------- <html> <body> <?php for ($i = 1; $i < 6; $i++) { echo " ----------------- $i ----------------<br />\n"; sleep(1); flush(); } ?> </body> </html> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42013&edit=1

« previous php.bugs (#115420) next »