This is an automated email from the ASF dual-hosted git repository.
brusdev pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git
The following commit(s) were added to refs/heads/main by this push:
new 31bad3fd1f ARTEMIS-5697 Close down the proton transport on sasl client
failures
31bad3fd1f is described below
commit 31bad3fd1ffea45f712321ecdb6dd418a6bb9356
Author: Timothy Bish <[email protected]>
AuthorDate: Wed Oct 8 12:44:35 2025 -0400
ARTEMIS-5697 Close down the proton transport on sasl client failures
When the SASL failure occurs from an outgoing broker connection attempt
close
down the transport and detach from the SASL client listener to avoid a loop.
---
.../activemq/artemis/protocol/amqp/proton/handler/ProtonHandler.java | 2 ++
1 file changed, 2 insertions(+)
diff --git
a/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/proton/handler/ProtonHandler.java
b/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/proton/handler/ProtonHandler.java
index ea4f920728..6dd15858f3 100644
---
a/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/proton/handler/ProtonHandler.java
+++
b/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/proton/handler/ProtonHandler.java
@@ -463,6 +463,8 @@ public class ProtonHandler extends ProtonInitializable
implements SaslListener {
if (clientSASLMechanism == null) {
logger.info("Outbound connection failed - unknown mechanism, offered
mechanisms: {}",
Arrays.asList(sasl.getRemoteMechanisms()));
+ sasl.setListener(null);
+ transport.close_head();
dispatchAuthFailed();
} else {
sasl.setMechanisms(clientSASLMechanism.getName());
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact