From 9421ac36960a370b0425bb26ff4f9e166f84589f Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Tue, 7 Jan 2003 17:30:04 +0000 Subject: [PATCH] remove code supressing errornos that are only appropriate to stream io --- src/cas/io/bsdSocket/casDGIntfIO.cc | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/cas/io/bsdSocket/casDGIntfIO.cc b/src/cas/io/bsdSocket/casDGIntfIO.cc index 92cc489cf..67b8059ac 100644 --- a/src/cas/io/bsdSocket/casDGIntfIO.cc +++ b/src/cas/io/bsdSocket/casDGIntfIO.cc @@ -387,9 +387,6 @@ casDGIntfIO::osdSend ( const char * pBufIn, bufSizeT size, // X aCC 361 // // casDGIntfIO::incomingBytesPresent() // -// ok to return a size of one here when a datagram is present, and -// zero otherwise. -// bufSizeT casDGIntfIO::incomingBytesPresent () const // X aCC 361 { int status; @@ -398,15 +395,8 @@ bufSizeT casDGIntfIO::incomingBytesPresent () const // X aCC 361 status = socket_ioctl ( this->sock, FIONREAD, & nchars ); // X aCC 392 if ( status < 0 ) { int localError = SOCKERRNO; - if ( - localError != SOCK_ECONNABORTED && - localError != SOCK_ECONNRESET && - localError != SOCK_EPIPE && - localError != SOCK_ETIMEDOUT ) - { - errlogPrintf ( "CAS: FIONREAD failed because \"%s\"\n", - SOCKERRSTR ( localError ) ); - } + errlogPrintf ( "CAS: FIONREAD failed because \"%s\"\n", + SOCKERRSTR ( localError ) ); return 0u; } else if ( nchars < 0 ) {