cvs: php-src /main/streams xp_socket.c

From: Date: Sun, 08 Feb 2009 16:54:57 +0000
Subject: cvs: php-src /main/streams xp_socket.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-56137@lists.php.net to get a copy of this message
iliaa Sun Feb 8 16:54:57 2009 UTC Modified files: /php-src/main/streams xp_socket.c Log: MFB: MFB52: 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.51&r2=1.52&diff_format=u Index: php-src/main/streams/xp_socket.c diff -u php-src/main/streams/xp_socket.c:1.51 php-src/main/streams/xp_socket.c:1.52 --- php-src/main/streams/xp_socket.c:1.51 Wed Jan 7 20:19:17 2009 +++ php-src/main/streams/xp_socket.c Sun Feb 8 16:54:57 2009 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: xp_socket.c,v 1.51 2009/01/07 20:19:17 felipe Exp $ */ +/* $Id: xp_socket.c,v 1.52 2009/02/08 16:54:57 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; } }

« previous php.cvs (#56137) next »