I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 875dd65d authored by zzz's avatar zzz
Browse files

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

parent b0ec6a08
No related branches found
No related tags found
No related merge requests found
...@@ -395,6 +395,19 @@ public class IndexBean { ...@@ -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 { ...@@ -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 { ...@@ -737,4 +754,4 @@ public class IndexBean {
buf.append((String)msgs.get(i)).append("\n"); buf.append((String)msgs.get(i)).append("\n");
} }
} }
} }
\ No newline at end of file
...@@ -26,7 +26,7 @@ tunnel.1.i2cpPort=7654 ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment