This is an automated email from the ASF dual-hosted git repository. orudyy pushed a commit to branch 8.0.x in repository https://gitbox.apache.org/repos/asf/qpid-broker-j.git
The following commit(s) were added to refs/heads/8.0.x by this push: new f9b4d9e QPID-8526:[Broker-J] Connection looping in NonBlockingConnectionTLSDelegate.doWrite() f9b4d9e is described below commit f9b4d9ea59e1447eb25ab537274bcab372825d5d Author: aw924 <daniil.kiril...@deutsche-boerse.com> AuthorDate: Wed May 19 13:16:44 2021 +0200 QPID-8526:[Broker-J] Connection looping in NonBlockingConnectionTLSDelegate.doWrite() This closes #87 (cherry picked from commit bb75a8c719a316ed60acf6a545767a4c9fb564ed) --- .../qpid/server/transport/NonBlockingConnectionTLSDelegate.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/broker-core/src/main/java/org/apache/qpid/server/transport/NonBlockingConnectionTLSDelegate.java b/broker-core/src/main/java/org/apache/qpid/server/transport/NonBlockingConnectionTLSDelegate.java index d14246f..7ecdaf9 100644 --- a/broker-core/src/main/java/org/apache/qpid/server/transport/NonBlockingConnectionTLSDelegate.java +++ b/broker-core/src/main/java/org/apache/qpid/server/transport/NonBlockingConnectionTLSDelegate.java @@ -253,6 +253,12 @@ public class NonBlockingConnectionTLSDelegate implements NonBlockingConnectionDe } _status = QpidByteBuffer.encryptSSL(_sslEngine, buffers, _netOutputBuffer); + if(_status.getStatus() == SSLEngineResult.Status.CLOSED) + { + throw new SSLException(String.format("SSLEngine.wrap operation could not be completed because" + + " it was already closed (status %s, handshake status %s)", + _status.getStatus(), _status.getHandshakeStatus())); + } // QPID-8489: workaround for JDK 8 bug to avoid tight looping for half closed connections // Additional info: https://bugs.openjdk.java.net/browse/JDK-8240071, // http://mail.openjdk.java.net/pipermail/security-dev/2019-January/019142.html --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org