diff src/org/eclipse/jetty/server/nio/SelectChannelConnector.java @ 948:f5aefdc4a81a

simplify SelectChannelConnector
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 11 Oct 2016 22:16:29 -0600
parents 0541b6034003
children a778413aefc0
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/nio/SelectChannelConnector.java	Tue Oct 11 21:33:40 2016 -0600
+++ b/src/org/eclipse/jetty/server/nio/SelectChannelConnector.java	Tue Oct 11 22:16:29 2016 -0600
@@ -100,7 +100,7 @@
 	protected synchronized void doStart() throws Exception
 	{
 		_manager.setSelectSets(getAcceptors());
-		_manager.setMaxIdleTime(getMaxIdleTime());
+//		_manager.setMaxIdleTime(getMaxIdleTime());
 		_manager.setLowResourcesConnections(0);
 
 		if (_acceptChannel == null)
@@ -121,18 +121,6 @@
 		super.doStart();
 	}
 
-	protected SelectChannelEndPoint newEndPoint(SocketChannel channel, SelectSet selectSet, SelectionKey key) throws IOException
-	{
-		SelectChannelEndPoint endp= new SelectChannelEndPoint(channel,selectSet,key, SelectChannelConnector.this._maxIdleTime);
-		endp.setConnection(selectSet.getManager().newConnection(channel,endp, key.attachment()));
-		return endp;
-	}
-
-	protected void endPointClosed(SelectChannelEndPoint endpoint)
-	{
-		endpoint.getConnection().onClose();
-	}
-
 	protected AsyncConnection newConnection(SocketChannel channel,final AsyncEndPoint endpoint)
 	{
 		return new AsyncHttpConnection(SelectChannelConnector.this,endpoint,server);
@@ -148,21 +136,9 @@
 		}
 
 		@Override
-		protected void endPointClosed(final SelectChannelEndPoint endpoint)
-		{
-			SelectChannelConnector.this.endPointClosed(endpoint);
-		}
-
-		@Override
 		public AsyncConnection newConnection(SocketChannel channel,AsyncEndPoint endpoint, Object attachment)
 		{
 			return SelectChannelConnector.this.newConnection(channel,endpoint);
 		}
-
-		@Override
-		protected SelectChannelEndPoint newEndPoint(SocketChannel channel, SelectSet selectSet, SelectionKey sKey) throws IOException
-		{
-			return SelectChannelConnector.this.newEndPoint(channel,selectSet,sKey);
-		}
 	}
 }