From 652d3be1f933d5b457970052e656ffd9b9497ea1 Mon Sep 17 00:00:00 2001 From: xuelei Date: Wed, 7 Aug 2013 06:42:06 -0700 Subject: [PATCH] 8013809: deadlock in SSLSocketImpl between between write and close Reviewed-by: wetmore --- src/share/classes/sun/security/ssl/SSLSocketImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/share/classes/sun/security/ssl/SSLSocketImpl.java b/src/share/classes/sun/security/ssl/SSLSocketImpl.java index ffa8f4528..dfe612966 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; } /** -- GitLab