mirror of https://github.com/apache/activemq.git
Merge pull request #620 from cshannon/AMQ-8169
AMQ-8169: Synchronize on serviceRead inside NIOSSLTransport
This commit is contained in:
commit
f2a3fbda2b
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue