]> granicus.if.org Git - php/commitdiff
Fixed bug #37256 (php-fastcgi dosen't handle connection abort)
authorDmitry Stogov <dmitry@php.net>
Wed, 24 May 2006 09:41:55 +0000 (09:41 +0000)
committerDmitry Stogov <dmitry@php.net>
Wed, 24 May 2006 09:41:55 +0000 (09:41 +0000)
sapi/cgi/cgi_main.c

index 71deaf07ebe961bca75ec806db8544de1db47820..41b35818c1c1ecf9a426e8a79e5323ef80f4e8ae 100644 (file)
@@ -273,7 +273,7 @@ static void sapi_cgibin_flush(void *server_context)
 #ifndef PHP_WIN32
                !parent && 
 #endif
-               request && fcgi_flush(request, 0) == -1) {
+               request && !fcgi_flush(request, 0)) {
                        php_handle_aborted_connection();
                }
                return;