mirror of https://github.com/aria2/aria2
2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Check socket for reading if there are outstanding requests. * src/PeerInteractionCommand.ccpull/1/head
parent
20e734fa15
commit
2f6e22f1aa
|
@ -1,3 +1,8 @@
|
||||||
|
2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
|
Check socket for reading if there are outstanding requests.
|
||||||
|
* src/PeerInteractionCommand.cc
|
||||||
|
|
||||||
2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Moved frequently called methods to header file so they get
|
Moved frequently called methods to header file so they get
|
||||||
|
|
|
@ -257,8 +257,8 @@ bool PeerInteractionCommand::executeInternal() {
|
||||||
if(btInteractive->countReceivedMessageInIteration() > 0) {
|
if(btInteractive->countReceivedMessageInIteration() > 0) {
|
||||||
updateKeepAlive();
|
updateKeepAlive();
|
||||||
}
|
}
|
||||||
if((peer->amInterested() && !peer->peerChoking() &&
|
if((peer->amInterested() && !peer->peerChoking()) ||
|
||||||
(peer->getLatency() < 1500)) ||
|
btInteractive->countOutstandingRequest() ||
|
||||||
(peer->peerInterested() && !peer->amChoking())) {
|
(peer->peerInterested() && !peer->amChoking())) {
|
||||||
|
|
||||||
// Writable check to avoid slow seeding
|
// Writable check to avoid slow seeding
|
||||||
|
|
Loading…
Reference in New Issue