dmitry Mon Sep 11 07:23:40 2006 UTC Modified files: /php-src/sapi/cgi fastcgi.c Log: Don't try to do safe connection close in case of FastCGI protocol error http://cvs.php.net/viewvc.cgi/php-src/sapi/cgi/fastcgi.c?r1=1.22&r2=1.23&diff_format=u Index: php-src/sapi/cgi/fastcgi.c diff -u php-src/sapi/cgi/fastcgi.c:1.22 php-src/sapi/cgi/fastcgi.c:1.23 --- php-src/sapi/cgi/fastcgi.c:1.22 Mon Sep 4 07:27:50 2006 +++ php-src/sapi/cgi/fastcgi.c Mon Sep 11 07:23:40 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: fastcgi.c,v 1.22 2006/09/04 07:27:50 dmitry Exp $ */ +/* $Id: fastcgi.c,v 1.23 2006/09/11 07:23:40 dmitry Exp $ */ #include "php.h" #include "fastcgi.h" @@ -611,10 +611,12 @@ RevertToSelf(); } #else - char buf[8]; + if (!force) { + char buf[8]; - shutdown(req->fd, 1); - while (recv(req->fd, buf, sizeof(buf), 0) > 0) {} + shutdown(req->fd, 1); + while (recv(req->fd, buf, sizeof(buf), 0) > 0) {} + } close(req->fd); #endif req->fd = -1;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php