diff src/org/eclipse/jetty/server/nio/BlockingChannelConnector.java @ 978:bdb6eb0fbf93

simplify ChannelEndPoint
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 16 Oct 2016 14:53:43 -0600
parents 53b3f7d9714c
children d9cfec64899c
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/nio/BlockingChannelConnector.java	Sun Oct 16 01:31:05 2016 -0600
+++ b/src/org/eclipse/jetty/server/nio/BlockingChannelConnector.java	Sun Oct 16 14:53:43 2016 -0600
@@ -138,7 +138,7 @@
 	{
 		super.customize(endpoint, request);
 		endpoint.setMaxIdleTime(_maxIdleTime);
-		configure(((SocketChannel)endpoint.getTransport()).socket());
+		configure(endpoint.getChannel().socket());
 	}
 
 
@@ -148,7 +148,7 @@
 		private int _timeout;
 		private volatile long _idleTimestamp;
 
-		BlockingChannelEndPoint(ByteChannel channel)
+		BlockingChannelEndPoint(SocketChannel channel)
 			throws IOException
 		{
 			super(channel,BlockingChannelConnector.this._maxIdleTime);