changeset 7822:8c7cf4926157

8013809: deadlock in SSLSocketImpl between between write and close Reviewed-by: wetmore
author xuelei
date Wed, 07 Aug 2013 06:42:06 -0700
parents 99f4319763a9
children c1f129f62f36
files src/share/classes/sun/security/ssl/SSLSocketImpl.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/security/ssl/SSLSocketImpl.java	Wed Aug 07 18:16:25 2013 +0530
+++ b/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;
     }
 
     /**