Loosen the condition where maxOutstandingRequest_ is increased.

pull/1/head
Tatsuhiro Tsujikawa 2011-07-18 23:31:25 +09:00
parent a454a97c4e
commit e15f4edf8b
1 changed files with 1 additions and 1 deletions

View File

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