* i2psnark: Don't timeout queued piece messages

This commit is contained in:
zzz
2010-11-29 13:08:03 +00:00
parent 2138599567
commit a86fef2a21
3 changed files with 18 additions and 5 deletions

View File

@ -110,6 +110,9 @@ class PeerState implements DataLoader
if (choked) {
out.cancelRequestMessages();
// old Roberts thrash us here, choke+unchoke right together
// The only problem with returning the partials to the coordinator
// is that chunks above a missing request are lost.
// Future enhancements to PartialPiece could keep track of the holes.
List<PartialPiece> pcs = returnPartialPieces();
if (!pcs.isEmpty()) {
if (_log.shouldLog(Log.DEBUG))