Changeset 38c8e01


Ignore:
Timestamp:
Nov 28, 2015 1:01:00 PM (5 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
87fa1cb
Parents:
7b83e23
Message:

i2psnark: Increase max pieces to 32K

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • apps/i2psnark/java/src/org/klomp/snark/Storage.java

    r7b83e23 r38c8e01  
    8181  public static final int MAX_PIECE_SIZE = 16*1024*1024;
    8282  /** The maximum number of pieces in a torrent. */
    83   public static final int MAX_PIECES = 20*1024;
     83  public static final int MAX_PIECES = 32*1024;
    8484  public static final long MAX_TOTAL_SIZE = MAX_PIECE_SIZE * (long) MAX_PIECES;
    8585
     
    167167        pc_size = DEFAULT_PIECE_SIZE;
    168168    int pcs = (int) ((total - 1)/pc_size) + 1;
    169     while (pcs > (MAX_PIECES * 2 / 3) && pc_size < MAX_PIECE_SIZE)
     169    while (pcs > (MAX_PIECES / 3) && pc_size < MAX_PIECE_SIZE)
    170170      {
    171171        pc_size *= 2;
  • history.txt

    r7b83e23 r38c8e01  
     12015-11-28 zzz
     2 * i2psnark:
     3   - Fix NPE caused by URL-to-URI conversion in -2 (ticket #1715)
     4   - Increase max pieces to 32K
     5
     62015-11-27 zzz
     7 * SAM:
     8   - Use DataHelper to load/store sam.keys
     9   - Move sam.keys to config dir (ticket #677)
     10
    1112015-11-27 zzz
    212Prop from i2p.i2p.zzz.sam:
     
    515   - Use getopt for SAM args processing
    616   - Change default host from 0.0.0.0 to 127.0.0.1
    7    - Add SSL support with -s option
     17   - Add SSL support with -s option (ticket #1106)
    818   - Add -c configfile option, default sam.config
    9    - Add protocol and port notification
    10    - Add authorization options in HELLO
     19   - Add protocol and port notification (ticket #1323)
     20   - Add authorization options in HELLO (ticket #1106)
    1121   - Add AUTH commands: ENABLE, DISABLE, ADD, REMOVE
    12    - Add PING, PONG, QUIT, STOP, EXIT commands
     22   - Add PING, PONG commands (tickets #1572, #1573)
     23   - Add QUIT, STOP, EXIT commands
    1324   - Add SSL option for STREAM FORWARD
    1425   - Move DatagramServer from SAMv3Handler to its own file
     
    1930   - Better exception handling
    2031   - Extensive enhancements to Java client for testing
    21    - Bump version to 3.2
     32   - Bump version to 3.2 (ticket #1574)
    2233 * Streaming: Fix recognition of PoisonPacket in ConnectionHandler
    2334
  • router/java/src/net/i2p/router/RouterVersion.java

    r7b83e23 r38c8e01  
    1919    public final static String ID = "Monotone";
    2020    public final static String VERSION = CoreVersion.VERSION;
    21     public final static long BUILD = 3;
     21    public final static long BUILD = 4;
    2222
    2323    /** for example "-test" */
Note: See TracChangeset for help on using the changeset viewer.