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

Skip to content
Snippets Groups Projects
Commit 351d582c authored by zzz's avatar zzz
Browse files

* Jetty: Add non-NIO selector option (ticket #715)

parent 5b1ea618
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<!-- * port: Default 7658 in the addConnector section --> <!-- * port: Default 7658 in the addConnector section -->
<!-- * docroot: Change the ResourceBase in the contexts/base-context.xml file --> <!-- * docroot: Change the ResourceBase in the contexts/base-context.xml file -->
<!-- to serve files from a different location. --> <!-- to serve files from a different location. -->
<!-- * threads: Raise MinThreads and/or MaxThreads in the addListener section --> <!-- * threads: Raise maximumPoolSize in the ThreadPool section -->
<!-- if you have a high-traffic site and get a lot of warnings. --> <!-- if you have a high-traffic site and get a lot of warnings. -->
<!-- * Uncomment the addWebApplications section to use to enable --> <!-- * Uncomment the addWebApplications section to use to enable -->
<!-- war files placed in the webapps/ dir. --> <!-- war files placed in the webapps/ dir. -->
...@@ -65,7 +65,8 @@ ...@@ -65,7 +65,8 @@
--> -->
<!-- Optional Java 5 bounded threadpool with job queue <!-- Optional Java 5 bounded threadpool with job queue
Requests above the max will be rejected Requests above the max will be rejected and logged.
High-traffic sites should increase maximumPoolSize.
TODO: would be nice to use the 5-arg constructor but TODO: would be nice to use the 5-arg constructor but
how do you use an Enum as the TimeUnit argument? how do you use an Enum as the TimeUnit argument?
Alternatively, make a custom class where we can Alternatively, make a custom class where we can
...@@ -75,7 +76,7 @@ ...@@ -75,7 +76,7 @@
<New class="org.mortbay.thread.concurrent.ThreadPool"> <New class="org.mortbay.thread.concurrent.ThreadPool">
<Arg type="int">0</Arg> <Arg type="int">0</Arg>
<Set name="corePoolSize">1</Set> <Set name="corePoolSize">1</Set>
<Set name="maximumPoolSize">16</Set> <Set name="maximumPoolSize">24</Set>
</New> </New>
</Set> </Set>
...@@ -89,6 +90,8 @@ ...@@ -89,6 +90,8 @@
<!-- Use this connector for many frequently idle connections <!-- Use this connector for many frequently idle connections
and for threadless continuations. and for threadless continuations.
Not recommended on Java 5 - comment out and uncomment the
SocketConnector below.
--> -->
<Call name="addConnector"> <Call name="addConnector">
<Arg> <Arg>
...@@ -106,6 +109,24 @@ ...@@ -106,6 +109,24 @@
</Arg> </Arg>
</Call> </Call>
<!-- Recommended to use this connector on Java 5, as
Jetty 6 and Java 5 NIO don't play well together.
-->
<!--
<Call name="addConnector">
<Arg>
<New class="org.mortbay.jetty.bio.SocketConnector">
<Set name="host">127.0.0.1</Set>
<Set name="port">7658</Set>
<Set name="maxIdleTime">60000</Set>
<Set name="Acceptors">1</Set>
<Set name="statsOn">false</Set>
<Set name="confidentialPort">8443</Set>
</New>
</Arg>
</Call>
-->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- To add a HTTPS SSL listener --> <!-- To add a HTTPS SSL listener -->
<!-- see jetty-ssl.xml to add an ssl connector. use --> <!-- see jetty-ssl.xml to add an ssl connector. use -->
......
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