|
32 | 32 | import java.nio.ByteBuffer;
|
33 | 33 | import java.nio.channels.Channel;
|
34 | 34 | import java.nio.channels.ClosedChannelException;
|
| 35 | +import java.nio.channels.NotYetConnectedException; |
35 | 36 | import java.nio.channels.SelectableChannel;
|
36 | 37 | import java.nio.channels.SelectionKey;
|
37 | 38 | import java.nio.channels.Selector;
|
|
40 | 41 | import java.security.NoSuchAlgorithmException;
|
41 | 42 | import java.security.cert.Certificate;
|
42 | 43 | import java.security.cert.CertificateEncodingException;
|
43 |
| -import java.util.Set; |
44 | 44 |
|
45 | 45 | import javax.net.ssl.SSLEngine;
|
46 | 46 | import javax.net.ssl.SSLEngineResult;
|
@@ -905,8 +905,10 @@ private void close(boolean force) {
|
905 | 905 | try {
|
906 | 906 | doShutdown();
|
907 | 907 | }
|
908 |
| - catch (IOException e) { |
909 |
| - // ignore? |
| 908 | + catch (IOException e) { // ignore? |
| 909 | + debug(getRuntime(), "SSLSocket.close doShutdown failed", e); |
| 910 | + } |
| 911 | + catch (NotYetConnectedException e) { |
910 | 912 | debug(getRuntime(), "SSLSocket.close doShutdown failed", e);
|
911 | 913 | }
|
912 | 914 | }
|
@@ -1122,7 +1124,7 @@ private SocketChannelImpl socketChannelImpl() {
|
1122 | 1124 | throw new IllegalStateException("unknow channel impl: " + channel + " of type " + channel.getClass().getName());
|
1123 | 1125 | }
|
1124 | 1126 |
|
1125 |
| - private static interface SocketChannelImpl { |
| 1127 | + private interface SocketChannelImpl { |
1126 | 1128 |
|
1127 | 1129 | boolean isOpen() ;
|
1128 | 1130 |
|
|
0 commit comments