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

Skip to content
Snippets Groups Projects
Commit 269a36c5 authored by zzz's avatar zzz
Browse files

* Jetty: Don't use direct byte buffers that may be leaking (ticket #679)

parent 36bf2483
No related branches found
No related tags found
No related merge requests found
...@@ -339,6 +339,7 @@ public class RouterConsoleRunner { ...@@ -339,6 +339,7 @@ public class RouterConsoleRunner {
lsnr.setPort(lport); lsnr.setPort(lport);
lsnr.setMaxIdleTime(90*1000); // default 10 sec lsnr.setMaxIdleTime(90*1000); // default 10 sec
lsnr.setName("ConsoleSocket"); // all with same name will use the same thread pool lsnr.setName("ConsoleSocket"); // all with same name will use the same thread pool
lsnr.setUseDirectBuffers(false); // default true seems to be leaky
//_server.addConnector(lsnr); //_server.addConnector(lsnr);
connectors.add(lsnr); connectors.add(lsnr);
boundAddresses++; boundAddresses++;
...@@ -398,6 +399,7 @@ public class RouterConsoleRunner { ...@@ -398,6 +399,7 @@ public class RouterConsoleRunner {
ssll.setKeyPassword(ctx.getProperty(PROP_KEY_PASSWORD, "thisWontWork")); ssll.setKeyPassword(ctx.getProperty(PROP_KEY_PASSWORD, "thisWontWork"));
ssll.setMaxIdleTime(90*1000); // default 10 sec ssll.setMaxIdleTime(90*1000); // default 10 sec
ssll.setName("ConsoleSocket"); // all with same name will use the same thread pool ssll.setName("ConsoleSocket"); // all with same name will use the same thread pool
ssll.setUseDirectBuffers(false); // default true seems to be leaky
//_server.addConnector(ssll); //_server.addConnector(ssll);
connectors.add(ssll); connectors.add(ssll);
boundAddresses++; boundAddresses++;
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
<New class="org.mortbay.jetty.security.SslSocketConnector"> <New class="org.mortbay.jetty.security.SslSocketConnector">
<Set name="Port">8443</Set> <Set name="Port">8443</Set>
<Set name="maxIdleTime">30000</Set> <Set name="maxIdleTime">30000</Set>
<Set name="useDirectBuffers">false</Set>
<Set name="handshakeTimeout">2000</Set> <Set name="handshakeTimeout">2000</Set>
<Set name="keystore">./eepsite/etc/keystore.ks</Set> <Set name="keystore">./eepsite/etc/keystore.ks</Set>
<Set name="password">OBF:1vny1zlo1x8e1vnw1vn61x8g1zlu1vn4</Set> <Set name="password">OBF:1vny1zlo1x8e1vnw1vn61x8g1zlu1vn4</Set>
......
...@@ -101,6 +101,7 @@ ...@@ -101,6 +101,7 @@
<Set name="confidentialPort">8443</Set> <Set name="confidentialPort">8443</Set>
<Set name="lowResourcesConnections">5000</Set> <Set name="lowResourcesConnections">5000</Set>
<Set name="lowResourcesMaxIdleTime">5000</Set> <Set name="lowResourcesMaxIdleTime">5000</Set>
<Set name="useDirectBuffers">false</Set>
</New> </New>
</Arg> </Arg>
</Call> </Call>
......
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