7179879: SSLSocket connect times out instead of throwing socket closed exception

Reviewed-by: xuelei, chegar
This commit is contained in:
Sean Coffey 2012-07-26 22:00:55 +01:00
parent cac7fc8e12
commit 37f0895031

View file

@ -1576,11 +1576,9 @@ final public class SSLSocketImpl extends BaseSSLSocketImpl {
Throwable cachedThrowable = null;
try {
switch (state) {
/*
* java.net code sometimes closes sockets "early", when
* we can't actually do I/O on them.
*/
case cs_START:
// unconnected socket or handshaking has not been initialized
closeSocket(selfInitiated);
break;
/*