2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Check socket for reading if there are outstanding requests.
	* src/PeerInteractionCommand.cc
pull/1/head
Tatsuhiro Tsujikawa 2009-11-18 12:19:00 +00:00
parent 20e734fa15
commit 2f6e22f1aa
2 changed files with 7 additions and 2 deletions

View File

@ -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>
Moved frequently called methods to header file so they get

View File

@ -257,8 +257,8 @@ bool PeerInteractionCommand::executeInternal() {
if(btInteractive->countReceivedMessageInIteration() > 0) {
updateKeepAlive();
}
if((peer->amInterested() && !peer->peerChoking() &&
(peer->getLatency() < 1500)) ||
if((peer->amInterested() && !peer->peerChoking()) ||
btInteractive->countOutstandingRequest() ||
(peer->peerInterested() && !peer->amChoking())) {
// Writable check to avoid slow seeding