fixed hang under heavy udp load

This commit is contained in:
Jeff Hill
2002-08-06 18:41:25 +00:00
parent 0e0004f526
commit dca801e344
+12 -10
View File
@@ -417,16 +417,12 @@ void casDGIntfOS::sendCB()
// attempt to flush the output buffer
//
flushCond = this->out.flush();
if ( flushCond == flushProgress ) {
if (this->sendBlocked) {
this->sendBlocked = false;
}
//
// this reenables receipt of incoming frames once
// the output has been flushed when the incoming
// address is different
//
this->armRecv ();
if ( flushCond != flushProgress ) {
return;
}
if (this->sendBlocked) {
this->sendBlocked = false;
}
# if defined(DEBUG)
@@ -450,6 +446,12 @@ void casDGIntfOS::sendCB()
// blocked.
//
this->processInput ();
//
// this reenables receipt of incoming frames once
// the output has been flushed
//
this->armRecv ();
}
//