Changeset 3b2aa94 for apps/ministreaming


Ignore:
Timestamp:
Oct 2, 2010 4:56:02 PM (10 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
042cde2
Parents:
a687180
Message:
  • I2CP:
    • Add new option i2cp.messageReliability=none, which prevents the router from sending MessageStatusMessages? back in reply to an outbound SendMessageMessage?. Since the streaming lib always ignored the MSMs anyway, make it the default for streaming. This will reduce the I2CP traffic significantly. MSM handling now avoided, but it is still fairly broken, see comments in I2PSessionImpl2.
    • Cleanups, javadoc, rate reduction
File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/ministreaming/java/src/net/i2p/client/streaming/I2PSocketManagerFactory.java

    ra687180 r3b2aa94  
    131131                opts.setProperty(name, System.getProperty(name));
    132132        }
    133         boolean oldLib = DEFAULT_MANAGER.equals(opts.getProperty(PROP_MANAGER, DEFAULT_MANAGER));
    134         if (oldLib && false) {
     133        //boolean oldLib = DEFAULT_MANAGER.equals(opts.getProperty(PROP_MANAGER, DEFAULT_MANAGER));
     134        //if (oldLib && false) {
    135135            // for the old streaming lib
    136             opts.setProperty(I2PClient.PROP_RELIABILITY, I2PClient.PROP_RELIABILITY_GUARANTEED);
     136        //    opts.setProperty(I2PClient.PROP_RELIABILITY, I2PClient.PROP_RELIABILITY_GUARANTEED);
    137137            //opts.setProperty("tunnels.depthInbound", "0");
    138         } else {
     138        //} else {
    139139            // for new streaming lib:
    140             opts.setProperty(I2PClient.PROP_RELIABILITY, I2PClient.PROP_RELIABILITY_BEST_EFFORT);
     140            //opts.setProperty(I2PClient.PROP_RELIABILITY, I2PClient.PROP_RELIABILITY_BEST_EFFORT);
     141            // as of 0.8.1 (I2CP default is BestEffort)
     142            if (!opts.containsKey(I2PClient.PROP_RELIABILITY))
     143                opts.setProperty(I2PClient.PROP_RELIABILITY, I2PClient.PROP_RELIABILITY_NONE);
    141144            //p.setProperty("tunnels.depthInbound", "0");
    142         }
     145        //}
    143146
    144147        if (i2cpHost != null)
Note: See TracChangeset for help on using the changeset viewer.