From 7de1f45aaa1a3866ca8ee072d6bf90fcf2a35720 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Fri, 18 Oct 2002 17:14:32 +0000 Subject: [PATCH] Revert my last bogus commit. Change the comparison to something that is less likely to inspire me to make the same mistake again... --- main/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.50.1