From e06090bb995cb484d66a0c497bcf4ea3133525ba Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Fri, 13 Dec 2002 18:31:48 +0000 Subject: [PATCH] fixed premature shutdown under load bug --- src/ca/tcpiiu.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ca/tcpiiu.cpp b/src/ca/tcpiiu.cpp index 8ac188dfb..47f92aab1 100644 --- a/src/ca/tcpiiu.cpp +++ b/src/ca/tcpiiu.cpp @@ -347,7 +347,7 @@ void tcpRecvThread::run () // force the receive watchdog to be reset every 5 frames unsigned contiguousFrameCount = 0; - while ( nBytesIn && ++contiguousFrameCount <= 5 ) { + while ( nBytesIn ) { if ( nBytesIn == pComBuf->capacityBytes () ) { if ( this->iiu.contigRecvMsgCount >= contiguousMsgCountWhichTriggersFlowControl ) { @@ -373,7 +373,8 @@ void tcpRecvThread::run () break; } - if ( ! this->iiu.bytesArePendingInOS () ) { + if ( ! this->iiu.bytesArePendingInOS () + || ++contiguousFrameCount > 5 ) { break; }