Changeset 8bfe3f6


Ignore:
Timestamp:
Apr 14, 2013 2:00:47 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
57b794f
Parents:
21e47e6
Message:
  • i2psnark:
    • Set unique tunnel nickname for additional instances
    • Increase page size to 50
    • Restore 1-arg SnarkManager? constructor for compatibility
    • Add note about DHT file w/ multiple instances, to be fixed
    • Log tweak
Location:
apps/i2psnark/java/src/org/klomp/snark
Files:
5 edited

Legend:

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

    r21e47e6 r8bfe3f6  
    227227            }
    228228            if (opts.getProperty("inbound.nickname") == null)
    229                 opts.setProperty("inbound.nickname", "I2PSnark");
     229                opts.setProperty("inbound.nickname", _baseName.replace("i2psnark", "I2PSnark"));
    230230            if (opts.getProperty("outbound.nickname") == null)
    231                 opts.setProperty("outbound.nickname", "I2PSnark");
     231                opts.setProperty("outbound.nickname", _baseName.replace("i2psnark", "I2PSnark"));
    232232            if (opts.getProperty("outbound.priority") == null)
    233233                opts.setProperty("outbound.priority", "-10");
  • apps/i2psnark/java/src/org/klomp/snark/Peer.java

    r21e47e6 r8bfe3f6  
    360360    if (!"BitTorrent protocol".equals(bittorrentProtocol))
    361361      throw new IOException("Handshake failure, expected "
    362                             + "'Bittorrent protocol', got '"
     362                            + "'BitTorrent protocol', got '"
    363363                            + bittorrentProtocol + "'");
    364364   
  • apps/i2psnark/java/src/org/klomp/snark/SnarkManager.java

    r21e47e6 r8bfe3f6  
    132132
    133133    /**
     134     *  For embedded.
     135     */
     136    public SnarkManager(I2PAppContext ctx) {
     137        this(ctx, "/i2psnark", "i2psnark");
     138    }
     139
     140    /**
     141     *  For webapp.
    134142     *  @param ctxPath generally "/i2psnark"
    135143     *  @param ctxName generally "i2psnark"
     144     *  @since 0.9.6
    136145     */
    137146    public SnarkManager(I2PAppContext ctx, String ctxPath, String ctxName) {
  • apps/i2psnark/java/src/org/klomp/snark/dht/PersistDHT.java

    r21e47e6 r8bfe3f6  
    5858
    5959    /**
     60     *  TODO - multiple instances overwrite each other
    6061     *  @param saveAll if true, don't check last seen time
    6162     */
  • apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java

    r21e47e6 r8bfe3f6  
    6262    private static final String DEFAULT_NAME = "i2psnark";
    6363    public static final String PROP_CONFIG_FILE = "i2psnark.configFile";
    64     private static final int PAGE_SIZE = 20;
     64    private static final int PAGE_SIZE = 50;
    6565 
    6666    public I2PSnarkServlet() {
Note: See TracChangeset for help on using the changeset viewer.