supress more messages associated with normal operation
This commit is contained in:
@@ -391,8 +391,16 @@ bufSizeT casDGIntfIO::incomingBytesPresent () const // X aCC 361
|
||||
|
||||
status = socket_ioctl ( this->sock, FIONREAD, & nchars ); // X aCC 392
|
||||
if ( status < 0 ) {
|
||||
errlogPrintf ( "CAS: FIONREAD failed because \"%s\"\n",
|
||||
SOCKERRSTR ( SOCKERRNO ) );
|
||||
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 ) );
|
||||
}
|
||||
return 0u;
|
||||
}
|
||||
else if ( nchars < 0 ) {
|
||||
|
||||
@@ -131,7 +131,12 @@ outBufClient::flushCondition casStreamIO::osdSend ( const char *pInBuf, bufSizeT
|
||||
int errnoCpy = SOCKERRNO;
|
||||
|
||||
ipAddrToA (&this->addr, buf, sizeof(buf));
|
||||
if ( errnoCpy != SOCK_ECONNRESET ) {
|
||||
|
||||
if (
|
||||
errnoCpy != SOCK_ECONNABORTED &&
|
||||
errnoCpy != SOCK_ECONNRESET &&
|
||||
errnoCpy != SOCK_EPIPE &&
|
||||
errnoCpy != SOCK_ETIMEDOUT ) {
|
||||
errlogPrintf(
|
||||
"CAS: TCP socket send to \"%s\" failed because \"%s\"\n",
|
||||
buf, SOCKERRSTR(errnoCpy));
|
||||
@@ -167,12 +172,16 @@ casStreamIO::osdRecv ( char * pInBuf, bufSizeT nBytes, // X aCC 361
|
||||
return casFillNone;
|
||||
}
|
||||
else {
|
||||
if ( myerrno != SOCK_ECONNRESET ) {
|
||||
if (
|
||||
myerrno != SOCK_ECONNABORTED &&
|
||||
myerrno != SOCK_ECONNRESET &&
|
||||
myerrno != SOCK_EPIPE &&
|
||||
myerrno != SOCK_ETIMEDOUT ) {
|
||||
ipAddrToA (&this->addr, buf, sizeof(buf));
|
||||
errlogPrintf(
|
||||
"CAS: client %s disconnected because \"%s\"\n",
|
||||
buf, SOCKERRSTR(myerrno));
|
||||
}
|
||||
}
|
||||
return casFillDisconnect;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user