* i2psnark: Increase max piece size to 4 MB (ticket #993)

This commit is contained in:
zzz
2013-07-30 21:50:07 +00:00
parent 63414f0348
commit 1284c7ace0

View File

@ -78,8 +78,8 @@ public class Storage
/** The default piece size. */ /** The default piece size. */
private static final int DEFAULT_PIECE_SIZE = 256*1024; private static final int DEFAULT_PIECE_SIZE = 256*1024;
/** note that we start reducing max number of peer connections above 1MB */ /** bigger than this will be rejected */
public static final int MAX_PIECE_SIZE = 2*1024*1024; public static final int MAX_PIECE_SIZE = 4*1024*1024;
/** The maximum number of pieces in a torrent. */ /** The maximum number of pieces in a torrent. */
public static final int MAX_PIECES = 10*1024; public static final int MAX_PIECES = 10*1024;
public static final long MAX_TOTAL_SIZE = MAX_PIECE_SIZE * (long) MAX_PIECES; public static final long MAX_TOTAL_SIZE = MAX_PIECE_SIZE * (long) MAX_PIECES;