From: Wez Furlong Date: Fri, 18 Oct 2002 17:14:32 +0000 (+0000) Subject: Revert my last bogus commit. X-Git-Tag: php-4.3.0pre2~294 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7de1f45aaa1a3866ca8ee072d6bf90fcf2a35720;p=php Revert my last bogus commit. Change the comparison to something that is less likely to inspire me to make the same mistake again... --- diff --git a/main/network.c b/main/network.c index d9c4c5d33c..d506a31b40 100644 --- a/main/network.c +++ b/main/network.c @@ -940,7 +940,7 @@ static size_t php_sockop_read(php_stream *stream, char *buf, size_t count TSRMLS nr_bytes = recv(sock->socket, buf, count, 0); - if (nr_bytes == 0 || (nr_bytes < count && php_socket_errno() != EWOULDBLOCK)) { + if (nr_bytes == 0 || (nr_bytes == -1 && php_socket_errno() != EWOULDBLOCK)) { stream->eof = 1; } }