diff src/org/eclipse/jetty/server/ssl/SslSelectChannelConnector.java @ 1003:21910079096e

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 22 Oct 2016 22:24:47 -0600
parents 35d04ac3fd0b
children 0e96ce3db20a
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/ssl/SslSelectChannelConnector.java	Sat Oct 22 21:56:44 2016 -0600
+++ b/src/org/eclipse/jetty/server/ssl/SslSelectChannelConnector.java	Sat Oct 22 22:24:47 2016 -0600
@@ -39,6 +39,7 @@
 import org.eclipse.jetty.server.Request;
 import org.eclipse.jetty.server.Server;
 import org.eclipse.jetty.server.AbstractHttpConnection;
+import org.eclipse.jetty.server.AsyncHttpConnection;
 import org.eclipse.jetty.server.nio.SelectChannelConnector;
 import org.eclipse.jetty.util.component.AggregateLifeCycle;
 import org.eclipse.jetty.util.ssl.SslContextFactory;
@@ -145,7 +146,7 @@
 		{
 			SSLEngine engine = createSSLEngine(channel);
 			SslConnection connection = new SslConnection(engine, endpoint);
-			AsyncConnection delegate = super.newConnection(channel, connection.getSslEndPoint());
+			AsyncHttpConnection delegate = (AsyncHttpConnection)super.newConnection(channel, connection.getSslEndPoint());
 			connection.getSslEndPoint().setConnection(delegate);
 			connection.setAllowRenegotiate(_sslContextFactory.isAllowRenegotiate());
 			return connection;