8013809: deadlock in SSLSocketImpl between between write and close
Reviewed-by: wetmore
--- a/jdk/src/share/classes/sun/security/ssl/SSLSocketImpl.java Wed Aug 07 18:16:25 2013 +0530
+++ b/jdk/src/share/classes/sun/security/ssl/SSLSocketImpl.java Wed Aug 07 06:42:06 2013 -0700
@@ -169,7 +169,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
@@ -1467,7 +1467,7 @@
*/
@Override
public boolean isClosed() {
- return getConnectionState() == cs_APP_CLOSED;
+ return connectionState == cs_APP_CLOSED;
}
/**