Merge pull request #620 from cshannon/AMQ-8169

AMQ-8169: Synchronize on serviceRead inside NIOSSLTransport
This commit is contained in:
Jean-Baptiste Onofré 2021-03-09 21:19:27 +01:00 committed by GitHub
commit f2a3fbda2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -158,8 +158,9 @@ public class AutoInitNioSSLTransport extends NIOSSLTransport {
return readSize;
}
//Prevent concurrent access to SSLEngine
@Override
public void serviceRead() {
public synchronized void serviceRead() {
try {
if (handshakeInProgress) {
doHandshake();

View File

@ -243,8 +243,9 @@ public class NIOSSLTransport extends NIOTransport {
}
}
//Prevent concurrent access to SSLEngine
@Override
public void serviceRead() {
public synchronized void serviceRead() {
try {
if (handshakeInProgress) {
doHandshake();