Permalink
Browse files

Standardize on BlockingChannelConnector for test servers - uses NIO, …

…almost same performance as SelectChannelConnector without potential to hang on Windows
  • Loading branch information...
mcculls committed Feb 17, 2012
1 parent 7ae135c commit 7c5520dead9ab3ecc848361a449add8adeb30c95
@@ -42,7 +42,7 @@
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.handler.DefaultHandler;
import org.eclipse.jetty.server.handler.HandlerCollection;
-import org.eclipse.jetty.server.nio.SelectChannelConnector;
+import org.eclipse.jetty.server.nio.BlockingChannelConnector;
import org.eclipse.jetty.server.ssl.SslConnector;
import org.eclipse.jetty.server.ssl.SslSocketConnector;
import org.eclipse.jetty.servlet.ServletContextHandler;
@@ -414,7 +414,7 @@ private String resourceFile( String resource )
protected Connector connector()
{
- SelectChannelConnector connector = new SelectChannelConnector();
+ Connector connector = new BlockingChannelConnector();
connector.setHost( host );
if ( port != -1 )
{

0 comments on commit 7c5520d

Please sign in to comment.