I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 1284c7ac authored by zzz's avatar zzz
Browse files

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

parent 63414f03
No related branches found
No related tags found
No related merge requests found
...@@ -78,8 +78,8 @@ public class Storage ...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment