diff options
| author | Wez Furlong <wez@php.net> | 2002-10-18 17:14:32 +0000 |
|---|---|---|
| committer | Wez Furlong <wez@php.net> | 2002-10-18 17:14:32 +0000 |
| commit | 7de1f45aaa1a3866ca8ee072d6bf90fcf2a35720 (patch) | |
| tree | 767201ae83baaf992038c050abd2271c51649722 | |
| parent | 9b87199e2adc286b2ad9c0009b3df3080844725e (diff) | |
| download | php-git-7de1f45aaa1a3866ca8ee072d6bf90fcf2a35720.tar.gz | |
Revert my last bogus commit.
Change the comparison to something that is less likely to inspire me to
make the same mistake again...
| -rw-r--r-- | main/network.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |
