iliaa Mon Feb 9 02:55:45 2009 UTC
Modified files: (Branch: PHP_5_3)
/php-src/main/streams xp_socket.c
Log:
MFB: Fixed bug #44874 (dead pfsockopen'ed sockets aren't reaped when
the remote end restarts)
http://cvs.php.net/viewvc.cgi/php-src/main/streams/xp_socket.c?r1=1.33.2.2.2.6.2.9r2=1.33.2.2.2.6.2.10diff_format=u
Index: php-src/main/streams/xp_socket.c
diff -u php-src/main/streams/xp_socket.c:1.33.2.2.2.6.2.9
php-src/main/streams/xp_socket.c:1.33.2.2.2.6.2.10
--- php-src/main/streams/xp_socket.c:1.33.2.2.2.6.2.9 Wed Jan 7 20:21:46 2009
+++ php-src/main/streams/xp_socket.cMon Feb 9 02:55:45 2009
@@ -16,7 +16,7 @@
+--+
*/
-/* $Id: xp_socket.c,v 1.33.2.2.2.6.2.9 2009/01/07 20:21:46 felipe Exp $ */
+/* $Id: xp_socket.c,v 1.33.2.2.2.6.2.10 2009/02/09 02:55:45 iliaa Exp $ */
#include php.h
#include ext/standard/file.h
@@ -281,7 +281,7 @@
if (sock-socket == -1) {
alive = 0;
} else if (php_pollfd_for(sock-socket,
PHP_POLLREADABLE|POLLPRI, tv) 0) {
- if (0 == recv(sock-socket, buf,
sizeof(buf), MSG_PEEK) php_socket_errno() != EWOULDBLOCK) {
+ if (0 = recv(sock-socket, buf,
sizeof(buf), MSG_PEEK) php_socket_errno() != EWOULDBLOCK) {
alive = 0;
}
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php