2005-09-26 jrandom
* Reworded the SSU introductions config section (thanks duck!) * Force identity content encoding for I2PTunnel httpserver requests (thanks redzara!) * Further x-i2p-gzip bugfixes for the end of streams * Reduce the minimum bandwidth limits to 3KBps steady and burst (though I2P's performance at 3KBps is another issue) * Cleaned up some streaming lib structures
This commit is contained in:
@ -15,9 +15,9 @@ import net.i2p.CoreVersion;
|
||||
*
|
||||
*/
|
||||
public class RouterVersion {
|
||||
public final static String ID = "$Revision: 1.244 $ $Date: 2005/09/25 04:29:02 $";
|
||||
public final static String ID = "$Revision: 1.245 $ $Date: 2005/09/25 18:52:58 $";
|
||||
public final static String VERSION = "0.6.0.6";
|
||||
public final static long BUILD = 4;
|
||||
public final static long BUILD = 5;
|
||||
public static void main(String args[]) {
|
||||
System.out.println("I2P Router version: " + VERSION + "-" + BUILD);
|
||||
System.out.println("Router ID: " + RouterVersion.ID);
|
||||
|
@ -567,7 +567,7 @@ public class FIFOBandwidthLimiter {
|
||||
public void renderStatusHTML(Writer out) throws IOException {
|
||||
long now = now();
|
||||
StringBuffer buf = new StringBuffer(4096);
|
||||
buf.append("<br /><i>Limiter status: ").append(getStatus().toString()).append("</i><br />\n");
|
||||
buf.append("<br /><i id=\"bwlim\">Limiter status: ").append(getStatus().toString()).append("</i><br />\n");
|
||||
buf.append("<b>Pending bandwidth requests:</b><ul>");
|
||||
buf.append("<li>Inbound requests: <ol>");
|
||||
synchronized (_pendingInboundRequests) {
|
||||
|
@ -33,19 +33,19 @@ class FIFOBandwidthRefiller implements Runnable {
|
||||
// no longer allow unlimited bandwidth - the user must specify a value, and if they do not, it is 16KBps
|
||||
public static final int DEFAULT_INBOUND_BANDWIDTH = 16;
|
||||
public static final int DEFAULT_OUTBOUND_BANDWIDTH = 16;
|
||||
public static final int DEFAULT_INBOUND_BURST_BANDWIDTH = 32;
|
||||
public static final int DEFAULT_OUTBOUND_BURST_BANDWIDTH = 32;
|
||||
public static final int DEFAULT_INBOUND_BURST_BANDWIDTH = 16;
|
||||
public static final int DEFAULT_OUTBOUND_BURST_BANDWIDTH = 16;
|
||||
|
||||
public static final int DEFAULT_BURST_SECONDS = 60;
|
||||
|
||||
/** For now, until there is some tuning and safe throttling, we set the floor at 6KBps inbound */
|
||||
public static final int MIN_INBOUND_BANDWIDTH = 5;
|
||||
/** For now, until there is some tuning and safe throttling, we set the floor at 6KBps outbound */
|
||||
public static final int MIN_OUTBOUND_BANDWIDTH = 5;
|
||||
/** For now, until there is some tuning and safe throttling, we set the floor at a 10 second burst */
|
||||
public static final int MIN_INBOUND_BANDWIDTH_PEAK = 10;
|
||||
/** For now, until there is some tuning and safe throttling, we set the floor at a 10 second burst */
|
||||
public static final int MIN_OUTBOUND_BANDWIDTH_PEAK = 10;
|
||||
/** For now, until there is some tuning and safe throttling, we set the floor at 3KBps inbound */
|
||||
public static final int MIN_INBOUND_BANDWIDTH = 3;
|
||||
/** For now, until there is some tuning and safe throttling, we set the floor at 3KBps outbound */
|
||||
public static final int MIN_OUTBOUND_BANDWIDTH = 3;
|
||||
/** For now, until there is some tuning and safe throttling, we set the floor at a 3KBps during burst */
|
||||
public static final int MIN_INBOUND_BANDWIDTH_PEAK = 3;
|
||||
/** For now, until there is some tuning and safe throttling, we set the floor at a 3KBps during burst */
|
||||
public static final int MIN_OUTBOUND_BANDWIDTH_PEAK = 3;
|
||||
|
||||
/**
|
||||
* how often we replenish the queues.
|
||||
|
@ -136,6 +136,7 @@ public class UDPTransport extends TransportImpl implements TimedWeightedPriority
|
||||
_introManager = new IntroductionManager(_context, this);
|
||||
_introducersSelectedOn = -1;
|
||||
|
||||
_context.statManager().createRateStat("udp.alreadyConnected", "What is the lifetime of a reestablished session", "udp", new long[] { 60*1000, 10*60*1000, 60*60*1000, 24*60*60*1000 });
|
||||
_context.statManager().createRateStat("udp.droppedPeer", "How long ago did we receive from a dropped peer (duration == session lifetime", "udp", new long[] { 60*60*1000, 24*60*60*1000 });
|
||||
_context.statManager().createRateStat("udp.droppedPeerInactive", "How long ago did we receive from a dropped peer (duration == session lifetime)", "udp", new long[] { 60*60*1000, 24*60*60*1000 });
|
||||
_context.statManager().createRateStat("udp.statusOK", "How many times the peer test returned OK", "udp", new long[] { 5*60*1000, 20*60*1000, 60*60*1000, 24*60*60*1000 });
|
||||
@ -862,7 +863,7 @@ public class UDPTransport extends TransportImpl implements TimedWeightedPriority
|
||||
long offsetTotal = 0;
|
||||
|
||||
StringBuffer buf = new StringBuffer(512);
|
||||
buf.append("<b>UDP connections: ").append(peers.size()).append("</b><br />\n");
|
||||
buf.append("<b id=\"udpcon\">UDP connections: ").append(peers.size()).append("</b><br />\n");
|
||||
buf.append("<table border=\"1\">\n");
|
||||
buf.append(" <tr><td><b>peer</b></td><td><b>idle</b></td>");
|
||||
buf.append(" <td><b>in/out</b></td>\n");
|
||||
|
Reference in New Issue
Block a user