Mercurial Hosting > luan
comparison 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 |
comparison
equal
deleted
inserted
replaced
1002:35d04ac3fd0b | 1003:21910079096e |
---|---|
37 import org.eclipse.jetty.io.nio.SslConnection; | 37 import org.eclipse.jetty.io.nio.SslConnection; |
38 import org.eclipse.jetty.io.nio.SelectChannelEndPoint; | 38 import org.eclipse.jetty.io.nio.SelectChannelEndPoint; |
39 import org.eclipse.jetty.server.Request; | 39 import org.eclipse.jetty.server.Request; |
40 import org.eclipse.jetty.server.Server; | 40 import org.eclipse.jetty.server.Server; |
41 import org.eclipse.jetty.server.AbstractHttpConnection; | 41 import org.eclipse.jetty.server.AbstractHttpConnection; |
42 import org.eclipse.jetty.server.AsyncHttpConnection; | |
42 import org.eclipse.jetty.server.nio.SelectChannelConnector; | 43 import org.eclipse.jetty.server.nio.SelectChannelConnector; |
43 import org.eclipse.jetty.util.component.AggregateLifeCycle; | 44 import org.eclipse.jetty.util.component.AggregateLifeCycle; |
44 import org.eclipse.jetty.util.ssl.SslContextFactory; | 45 import org.eclipse.jetty.util.ssl.SslContextFactory; |
45 | 46 |
46 /* ------------------------------------------------------------ */ | 47 /* ------------------------------------------------------------ */ |
143 { | 144 { |
144 try | 145 try |
145 { | 146 { |
146 SSLEngine engine = createSSLEngine(channel); | 147 SSLEngine engine = createSSLEngine(channel); |
147 SslConnection connection = new SslConnection(engine, endpoint); | 148 SslConnection connection = new SslConnection(engine, endpoint); |
148 AsyncConnection delegate = super.newConnection(channel, connection.getSslEndPoint()); | 149 AsyncHttpConnection delegate = (AsyncHttpConnection)super.newConnection(channel, connection.getSslEndPoint()); |
149 connection.getSslEndPoint().setConnection(delegate); | 150 connection.getSslEndPoint().setConnection(delegate); |
150 connection.setAllowRenegotiate(_sslContextFactory.isAllowRenegotiate()); | 151 connection.setAllowRenegotiate(_sslContextFactory.isAllowRenegotiate()); |
151 return connection; | 152 return connection; |
152 } | 153 } |
153 catch (IOException e) | 154 catch (IOException e) |