Mercurial Hosting > luan
comparison src/org/eclipse/jetty/io/nio/SslConnection.java @ 973:4d9fe9cc554d
simplify AbstractConnection
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 15 Oct 2016 23:03:00 -0600 |
parents | 5ee36654b383 |
children | 7422ca1ae146 |
comparison
equal
deleted
inserted
replaced
972:5ee36654b383 | 973:4d9fe9cc554d |
---|---|
84 } | 84 } |
85 } | 85 } |
86 | 86 |
87 public SslConnection(SSLEngine engine,AsyncEndPoint endp) | 87 public SslConnection(SSLEngine engine,AsyncEndPoint endp) |
88 { | 88 { |
89 this(engine,endp,System.currentTimeMillis()); | 89 super(endp); |
90 } | |
91 | |
92 private SslConnection(SSLEngine engine,AsyncEndPoint endp, long timeStamp) | |
93 { | |
94 super(endp,timeStamp); | |
95 _engine=engine; | 90 _engine=engine; |
96 _session=_engine.getSession(); | 91 _session=_engine.getSession(); |
97 _aEndp=endp; | 92 _aEndp=endp; |
98 _sslEndPoint = new SslEndPoint(); | 93 _sslEndPoint = new SslEndPoint(); |
99 } | 94 } |
217 } | 212 } |
218 | 213 |
219 public boolean isSuspended() | 214 public boolean isSuspended() |
220 { | 215 { |
221 return false; | 216 return false; |
222 } | |
223 | |
224 @Override | |
225 public void onIdleExpired(long idleForMs) | |
226 { | |
227 try | |
228 { | |
229 _logger.debug("onIdleExpired {}ms on {}",idleForMs,this); | |
230 if (_endp.isOutputShutdown()) | |
231 _sslEndPoint.close(); | |
232 else | |
233 _sslEndPoint.shutdownOutput(); | |
234 } | |
235 catch (IOException e) | |
236 { | |
237 _logger.warn("",e); | |
238 super.onIdleExpired(idleForMs); | |
239 } | |
240 } | 217 } |
241 | 218 |
242 public void onInputShutdown() throws IOException | 219 public void onInputShutdown() throws IOException |
243 { | 220 { |
244 | 221 |