* I2PTunnel: Change "interactive" max window size to 16 (was 1)
This commit is contained in:
@ -395,6 +395,19 @@ public class IndexBean {
|
|||||||
return "";
|
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) {
|
public String getSharedClient(int tunnel) {
|
||||||
TunnelController tun = getController(tunnel);
|
TunnelController tun = getController(tunnel);
|
||||||
if (tun != null)
|
if (tun != null)
|
||||||
@ -707,7 +720,11 @@ public class IndexBean {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ("interactive".equals(_profile))
|
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
|
else
|
||||||
config.remove("option.i2p.streaming.maxWindowSize");
|
config.remove("option.i2p.streaming.maxWindowSize");
|
||||||
}
|
}
|
||||||
@ -737,4 +754,4 @@ public class IndexBean {
|
|||||||
buf.append((String)msgs.get(i)).append("\n");
|
buf.append((String)msgs.get(i)).append("\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ tunnel.1.i2cpPort=7654
|
|||||||
tunnel.1.option.inbound.nickname=shared clients
|
tunnel.1.option.inbound.nickname=shared clients
|
||||||
tunnel.1.option.outbound.nickname=shared clients
|
tunnel.1.option.outbound.nickname=shared clients
|
||||||
tunnel.1.option.i2p.streaming.connectDelay=1000
|
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
|
tunnel.1.startOnLoad=true
|
||||||
|
|
||||||
# I2P's mtn server
|
# I2P's mtn server
|
||||||
|
Reference in New Issue
Block a user