fixed premature shutdown under load bug

This commit is contained in:
Jeff Hill
2002-12-13 18:31:48 +00:00
parent ba6ce39c67
commit e06090bb99

View File

@@ -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;
}