فهرست منبع

Send HAVE message to the peer which the piece is downloaded from

Historically, aria2 did not send HAVE message to the peer which the
piece is coming from, thinking it is obvious that the peer knows we
have the piece. But it is not obvious if one piece is download from
more than 1 peers (e.g., end game mode). So it is better to send HAVE
to all peers connected.
Tatsuhiro Tsujikawa 12 سال پیش
والد
کامیت
4a106e7fcf
1فایلهای تغییر یافته به همراه0 افزوده شده و 3 حذف شده
  1. 0 3
      src/DefaultPieceStorage.cc

+ 0 - 3
src/DefaultPieceStorage.cc

@@ -725,9 +725,6 @@ DefaultPieceStorage::getAdvertisedPieceIndexes(std::vector<size_t>& indexes,
   for(std::deque<HaveEntry>::const_iterator itr = haves_.begin(),
         eoi = haves_.end(); itr != eoi; ++itr) {
     const HaveEntry& have = *itr;
-    if(have.getCuid() == myCuid) {
-      continue;
-    }
     if(lastCheckTime > have.getRegisteredTime()) {
       break;
     }