# HG changeset patch # User xuelei # Date 1376300065 25200 # Node ID 521761df8dea9bbb963bf6a489128b3e2a7d3686 # Parent a982f3aa40ed11c78b664982f77118f06929b69e 8013809: deadlock in SSLSocketImpl between between write and close Reviewed-by: wetmore diff -r a982f3aa40ed -r 521761df8dea src/share/classes/sun/security/ssl/SSLSocketImpl.java --- a/src/share/classes/sun/security/ssl/SSLSocketImpl.java Wed May 21 15:52:15 2014 +0100 +++ b/src/share/classes/sun/security/ssl/SSLSocketImpl.java Mon Aug 12 02:34:25 2013 -0700 @@ -172,7 +172,7 @@ /* * Drives the protocol state machine. */ - private int connectionState; + private volatile int connectionState; /* * Flag indicating if the next record we receive MUST be a Finished @@ -1443,7 +1443,7 @@ * Return whether the socket has been explicitly closed by the application. */ public boolean isClosed() { - return getConnectionState() == cs_APP_CLOSED; + return connectionState == cs_APP_CLOSED; } /**