Skip to content
Permalink
Browse files
8263743: redundant lock in SSLSocketImpl
Reviewed-by: jnimeh
  • Loading branch information
XueleiFan committed Mar 25, 2021
1 parent 3fcb499 commit a678a38dd9007951a63b979ec217ca4f2025efa1
Showing 1 changed file with 1 addition and 7 deletions.
@@ -1469,13 +1469,7 @@ private ByteBuffer readApplicationRecord(
}

try {
Plaintext plainText;
socketLock.lock();
try {
plainText = decode(buffer);
} finally {
socketLock.unlock();
}
Plaintext plainText = decode(buffer);
if (plainText.contentType == ContentType.APPLICATION_DATA.id &&
buffer.position() > 0) {
return buffer;

0 comments on commit a678a38

Please sign in to comment.