mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 04:24:49 +02:00
7179879: SSLSocket connect times out instead of throwing socket closed exception
Reviewed-by: xuelei, chegar
This commit is contained in:
parent
cac7fc8e12
commit
37f0895031
1 changed files with 2 additions and 4 deletions
|
@ -1576,11 +1576,9 @@ final public class SSLSocketImpl extends BaseSSLSocketImpl {
|
||||||
Throwable cachedThrowable = null;
|
Throwable cachedThrowable = null;
|
||||||
try {
|
try {
|
||||||
switch (state) {
|
switch (state) {
|
||||||
/*
|
|
||||||
* java.net code sometimes closes sockets "early", when
|
|
||||||
* we can't actually do I/O on them.
|
|
||||||
*/
|
|
||||||
case cs_START:
|
case cs_START:
|
||||||
|
// unconnected socket or handshaking has not been initialized
|
||||||
|
closeSocket(selfInitiated);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue