2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Unchoke a peer randomly at first and second choke round in seed
	state.
	* src/BtSeederStateChoke.cc
pull/1/head
Tatsuhiro Tsujikawa 2009-06-04 12:07:27 +00:00
parent c2f20e1e3a
commit 997f96d864
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Unchoke a peer randomly at first and second choke round in seed
state.
* src/BtSeederStateChoke.cc
2009-06-02 Ross Smith II <aria2spam at smithii dot com>
Added (sock_t) to quiet compiler warnings in MinGW

View File

@ -96,7 +96,7 @@ void BtSeederStateChoke::unchoke
(*r).getUploadSpeed());
}
if(_round == 2) {
if(_round < 2) {
std::for_each(peers.begin(), peers.end(),
std::mem_fun_ref(&PeerEntry::disableOptUnchoking));
if(r != peers.end()) {