mirror of https://github.com/aria2/aria2
2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Moved the call setWriteCheckSocket inside the previous clause to reduce the number of socket to watch out. * src/PeerInteractionCommand.ccpull/1/head
parent
1c2dd30bf7
commit
067aa16499
|
@ -1,3 +1,9 @@
|
||||||
|
2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||||
|
|
||||||
|
Moved the call setWriteCheckSocket inside the previous clause to reduce
|
||||||
|
the number of socket to watch out.
|
||||||
|
* src/PeerInteractionCommand.cc
|
||||||
|
|
||||||
2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||||
|
|
||||||
When there is not enough space in disk when writing a chunk of data,
|
When there is not enough space in disk when writing a chunk of data,
|
||||||
|
|
|
@ -230,6 +230,11 @@ bool PeerInteractionCommand::executeInternal() {
|
||||||
}
|
}
|
||||||
if((peer->amInterested() && !peer->peerChoking() && (peer->getLatency() < 1500)) ||
|
if((peer->amInterested() && !peer->peerChoking() && (peer->getLatency() < 1500)) ||
|
||||||
(peer->peerInterested() && !peer->amChoking())) {
|
(peer->peerInterested() && !peer->amChoking())) {
|
||||||
|
|
||||||
|
if(btInteractive->isSendingMessageInProgress()) {
|
||||||
|
setWriteCheckSocket(socket);
|
||||||
|
}
|
||||||
|
|
||||||
if(maxDownloadSpeedLimit > 0) {
|
if(maxDownloadSpeedLimit > 0) {
|
||||||
TransferStat stat = peerStorage->calculateStat();
|
TransferStat stat = peerStorage->calculateStat();
|
||||||
if(maxDownloadSpeedLimit < stat.downloadSpeed) {
|
if(maxDownloadSpeedLimit < stat.downloadSpeed) {
|
||||||
|
@ -244,9 +249,6 @@ bool PeerInteractionCommand::executeInternal() {
|
||||||
} else {
|
} else {
|
||||||
disableReadCheckSocket();
|
disableReadCheckSocket();
|
||||||
}
|
}
|
||||||
if(btInteractive->isSendingMessageInProgress()) {
|
|
||||||
setWriteCheckSocket(socket);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(btInteractive->countPendingMessage() > 0) {
|
if(btInteractive->countPendingMessage() > 0) {
|
||||||
|
|
Loading…
Reference in New Issue