Browse Source

Loosen the condition where maxOutstandingRequest_ is increased.

Tatsuhiro Tsujikawa 14 years ago
parent
commit
e15f4edf8b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/DefaultBtInteractive.cc

+ 1 - 1
src/DefaultBtInteractive.cc

@@ -314,7 +314,7 @@ size_t DefaultBtInteractive::receiveMessages() {
   }
   if(!pieceStorage_->isEndGame() &&
      countOldOutstandingRequest >= maxOutstandingRequest_ &&
-     dispatcher_->countOutstandingRequest() == 0){
+     dispatcher_->countOutstandingRequest()*2 <= maxOutstandingRequest_){
     maxOutstandingRequest_ =
       std::min((size_t)UB_MAX_OUTSTANDING_REQUEST,
                maxOutstandingRequest_+OUTSTANDING_REQUEST_STEP);