From 78d368b6ca30435b7675aaf00d0c6651b09c5015 Mon Sep 17 00:00:00 2001 From: Mike Goslin Date: Fri, 15 Dec 2000 00:56:36 +0000 Subject: [PATCH] *** empty log message *** --- panda/src/downloader/downloader.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/panda/src/downloader/downloader.cxx b/panda/src/downloader/downloader.cxx index 85aca454fd..ed809da305 100644 --- a/panda/src/downloader/downloader.cxx +++ b/panda/src/downloader/downloader.cxx @@ -237,12 +237,13 @@ fast_receive(int socket, DownloadStatus *status, int rec_size) { fd_set rset; FD_ZERO(&rset); FD_SET(socket, &rset); - int sret = select(socket + 1, &rset, NULL, NULL, &tv); + int sret = select(socket, &rset, NULL, NULL, &tv); if (sret == 0) { return FR_no_data; } else if (sret == -1) { downloader_cat.error() - << "Downloader::safe_receive() - error: " << strerror(errno) << endl; + << "Downloader::fast_receive() - select() error: " + << strerror(errno) << endl; return FR_error; } int ret = recv(socket, status->_next_in, rec_size, 0); @@ -250,7 +251,8 @@ fast_receive(int socket, DownloadStatus *status, int rec_size) { return FR_eof; } else if (ret == -1) { downloader_cat.error() - << "Downloader::fast_receive() - error: " << strerror(errno) << endl; + << "Downloader::fast_receive() - recv() error: " + << strerror(errno) << endl; return FR_error; } if (downloader_cat.is_debug())