From 662e8ffa4308b908ae133fe10598b2fe7fac9628 Mon Sep 17 00:00:00 2001 From: Karl Chen Date: Sun, 7 Sep 2003 02:40:57 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=2286 --- client/http.C | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/client/http.C b/client/http.C index 01b3a9068d..cfae89787a 100644 --- a/client/http.C +++ b/client/http.C @@ -179,10 +179,12 @@ int HTTP_REPLY_HEADER::read_reply(int socket) { char c; errno = 0; int n = recv(socket, &c, 1, 0); - scope_messages.printf( - "HTTP_REPLY_HEADER::read_reply(): recv() on socket %d returned %d errno %d sockerr %d\n", - socket, n, errno, get_socket_error(socket) - ); + if (n != 1) { + scope_messages.printf( + "HTTP_REPLY_HEADER::read_reply(): recv() on socket %d returned %d errno %d sockerr %d\n", + socket, n, errno, get_socket_error(socket) + ); + } if (n == -1 && errno == EAGAIN) { return 1; }