8171900: javax/net/ssl/SSLSession/SessionTimeOutTests.java failed with "SSLHandshakeException: Remote host terminated the handshake"
Summary: The fix takes some code patterns from SSLSocketTemplate to deal with possible SSLHandshakeException and SocketTimeoutException, and it also resolves a potential mismatch on the connections between the clients and the servers.
Reviewed-by: xuelei
Contributed-by: John Jiang <sha.jiang@oracle.com>
^build/
^dist/
^.idea/
nbproject/private/
^webrev
^.src-rev$
^.jib/
.DS_Store
.metadata/
.recommenders/