diff --git a/src/share/classes/sun/security/ssl/SSLSocketImpl.java b/src/share/classes/sun/security/ssl/SSLSocketImpl.java index ffa8f4528e8028cd584d8c4d13f661dc926ee367..dfe612966e003ce7e5af59cd4d217c064c358073 100644 --- a/src/share/classes/sun/security/ssl/SSLSocketImpl.java +++ b/src/share/classes/sun/security/ssl/SSLSocketImpl.java @@ -169,7 +169,7 @@ final public class SSLSocketImpl extends BaseSSLSocketImpl { /* * Drives the protocol state machine. */ - private int connectionState; + private volatile int connectionState; /* * Flag indicating if the next record we receive MUST be a Finished @@ -1467,7 +1467,7 @@ final public class SSLSocketImpl extends BaseSSLSocketImpl { */ @Override public boolean isClosed() { - return getConnectionState() == cs_APP_CLOSED; + return connectionState == cs_APP_CLOSED; } /**