summaryrefslogtreecommitdiff
path: root/src/DefaultBtInteractive.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-06-25 21:37:55 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-06-25 21:37:55 +0900
commit3620d271af36a210af9c83fd6b49d13940710055 (patch)
tree44526e797ac33bc7c34fbe5244f31464768034af /src/DefaultBtInteractive.cc
parente816c5eee46115111d706f86f7bdae303116403c (diff)
Process as many messages as possible in recv buffer
Diffstat (limited to 'src/DefaultBtInteractive.cc')
-rw-r--r--src/DefaultBtInteractive.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DefaultBtInteractive.cc b/src/DefaultBtInteractive.cc
index b70bb330..cb2530e8 100644
--- a/src/DefaultBtInteractive.cc
+++ b/src/DefaultBtInteractive.cc
@@ -274,7 +274,7 @@ void DefaultBtInteractive::sendKeepAlive() {
size_t DefaultBtInteractive::receiveMessages() {
size_t countOldOutstandingRequest = dispatcher_->countOutstandingRequest();
size_t msgcount = 0;
- for(int i = 0; i < UB_MAX_OUTSTANDING_REQUEST+50; ++i) {
+ while(1) {
if(requestGroupMan_->doesOverallDownloadSpeedExceed() ||
downloadContext_->getOwnerRequestGroup()->doesDownloadSpeedExceed()) {
break;