* I2PTunnel: Change "interactive" max window size to 16 (was 1)

This commit is contained in:
zzz
2008-11-11 02:30:21 +00:00
parent b0ec6a0870
commit 875dd65dcb
2 changed files with 20 additions and 3 deletions

View File

@ -395,6 +395,19 @@ public class IndexBean {
return "";
}
public String getHTMLStreams(int tunnel) {
TunnelController tun = getController(tunnel);
if (tun != null) {
if (tunnel != 0 &&
"true".equalsIgnoreCase(tun.getSharedClient()) &&
isClient(tunnel))
return "Listed above";
else
return tun.getHTMLStreams();
} else
return "";
}
public String getSharedClient(int tunnel) {
TunnelController tun = getController(tunnel);
if (tun != null)
@ -707,7 +720,11 @@ public class IndexBean {
}
}
if ("interactive".equals(_profile))
config.setProperty("option.i2p.streaming.maxWindowSize", "1");
// This was 1 which doesn't make much sense
// The real way to make it interactive is to make the streaming lib
// MessageInputStream flush faster but there's no option for that yet,
// Setting it to 16 instead of the default but not sure what good that is either.
config.setProperty("option.i2p.streaming.maxWindowSize", "16");
else
config.remove("option.i2p.streaming.maxWindowSize");
}
@ -737,4 +754,4 @@ public class IndexBean {
buf.append((String)msgs.get(i)).append("\n");
}
}
}
}

View File

@ -26,7 +26,7 @@ tunnel.1.i2cpPort=7654
tunnel.1.option.inbound.nickname=shared clients
tunnel.1.option.outbound.nickname=shared clients
tunnel.1.option.i2p.streaming.connectDelay=1000
tunnel.1.option.i2p.streaming.maxWindowSize=1
tunnel.1.option.i2p.streaming.maxWindowSize=16
tunnel.1.startOnLoad=true
# I2P's mtn server