(zzz)
* i2psnark: Fix bug where new peers would always be set to "interested" regardless of actual interest * i2psnark: Reduce max piece size from 10MB to 1MB; larger may have severe memory and efficiency problems
This commit is contained in:
@ -396,9 +396,10 @@ public class PeerCoordinator implements PeerListener
|
|||||||
{
|
{
|
||||||
Piece p = (Piece)it.next();
|
Piece p = (Piece)it.next();
|
||||||
int i = p.getId();
|
int i = p.getId();
|
||||||
if (bitfield.get(i))
|
if (bitfield.get(i)) {
|
||||||
p.addPeer(peer);
|
p.addPeer(peer);
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
@ -335,7 +335,7 @@ public class SnarkManager implements Snark.CompleteListener {
|
|||||||
return "Too many files in " + info.getName() + " (" + files.size() + "), deleting it";
|
return "Too many files in " + info.getName() + " (" + files.size() + "), deleting it";
|
||||||
} else if (info.getPieces() <= 0) {
|
} else if (info.getPieces() <= 0) {
|
||||||
return "No pieces in " + info.getName() + "? deleting it";
|
return "No pieces in " + info.getName() + "? deleting it";
|
||||||
} else if (info.getPieceLength(0) > 10*1024*1024) {
|
} else if (info.getPieceLength(0) > 1*1024*1024) {
|
||||||
return "Pieces are too large in " + info.getName() + " (" + info.getPieceLength(0)/1024 + "KB, deleting it";
|
return "Pieces are too large in " + info.getName() + " (" + info.getPieceLength(0)/1024 + "KB, deleting it";
|
||||||
} else if (info.getTotalLength() > 10*1024*1024*1024l) {
|
} else if (info.getTotalLength() > 10*1024*1024*1024l) {
|
||||||
System.out.println("torrent info: " + info.toString());
|
System.out.println("torrent info: " + info.toString());
|
||||||
|
@ -1,4 +1,10 @@
|
|||||||
$Id: history.txt,v 1.515 2006-09-08 20:41:57 jrandom Exp $
|
$Id: history.txt,v 1.516 2006-09-09 12:46:21 jrandom Exp $
|
||||||
|
|
||||||
|
2006-09-09 zzz
|
||||||
|
* i2psnark: Fix bug where new peers would always be sent an "interested"
|
||||||
|
regardless of actual interest
|
||||||
|
* i2psnark: Reduce max piece size from 10MB to 1MB; larger may have severe
|
||||||
|
memory and efficiency problems
|
||||||
|
|
||||||
* 2006-09-09 0.6.1.25 released
|
* 2006-09-09 0.6.1.25 released
|
||||||
|
|
||||||
|
@ -15,9 +15,9 @@ import net.i2p.CoreVersion;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class RouterVersion {
|
public class RouterVersion {
|
||||||
public final static String ID = "$Revision: 1.453 $ $Date: 2006-09-08 20:42:03 $";
|
public final static String ID = "$Revision: 1.454 $ $Date: 2006-09-09 12:46:29 $";
|
||||||
public final static String VERSION = "0.6.1.25";
|
public final static String VERSION = "0.6.1.25";
|
||||||
public final static long BUILD = 0;
|
public final static long BUILD = 1;
|
||||||
public static void main(String args[]) {
|
public static void main(String args[]) {
|
||||||
System.out.println("I2P Router version: " + VERSION + "-" + BUILD);
|
System.out.println("I2P Router version: " + VERSION + "-" + BUILD);
|
||||||
System.out.println("Router ID: " + RouterVersion.ID);
|
System.out.println("Router ID: " + RouterVersion.ID);
|
||||||
|
Reference in New Issue
Block a user