From 6fe36adf0cf2d20649ffc9fa1e91d75eca492169 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 24 May 2006 09:42:21 +0000 Subject: [PATCH] Fixed bug #37256 (php-fastcgi dosen't handle connection abort) --- NEWS | 1 + sapi/cgi/cgi_main.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 722f3beda2..da3c1ab6f8 100644 --- a/NEWS +++ b/NEWS @@ -72,6 +72,7 @@ PHP NEWS - Fixed bug #37313 (sigemptyset() used without including ). (jdolecek) - Fixed bug #37306 (max_execution_time = max_input_time). (Dmitry) +- Fixed bug #37256 (php-fastcgi dosen't handle connection abort). (Dmitry) - Fixed bug #37244 (Added strict flag to base64_decode() that enforces RFC3548 compliance). (Ilia) - Fixed bug #36630 (umask not reset at the end of the request). (Ilia) diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 1c13747214..eb8f50f240 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -282,7 +282,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; -- 2.40.0