提交 652d3be1 编写于 作者: X xuelei

8013809: deadlock in SSLSocketImpl between between write and close

Reviewed-by: wetmore
上级 4b9ee906
......@@ -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;
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册