From 5aa8fbb3c965ab5b546594c72ef1cda9e128b4d3 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Wed, 11 Dec 2002 19:14:19 +0000 Subject: [PATCH] supress error message about bad fd when its a normal abort shutdown --- src/ca/tcpiiu.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ca/tcpiiu.cpp b/src/ca/tcpiiu.cpp index e7f04da0f..5a7aa20e6 100644 --- a/src/ca/tcpiiu.cpp +++ b/src/ca/tcpiiu.cpp @@ -1367,6 +1367,14 @@ void tcpiiu::blockUntilBytesArePendingInOS () while ( this->state == tcpiiu::iiucs_connected ) { int status = ::recv ( this->sock, & buf, 1, MSG_PEEK ); + + // if the circuit was aborted then supress warning message about + // bad file descriptor + if ( this->state != iiucs_connected && + this->state != iiucs_clean_shutdown ) { + return; + } + if ( status > 0 ) { break; }