You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jb...@apache.org on 2021/08/04 06:24:09 UTC
[activemq] branch main updated: [AMQ-8252] Doesn't display warn
stack trace for stomp (regression compared to 5.15.x)
This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq.git
The following commit(s) were added to refs/heads/main by this push:
new ceaeaa9 [AMQ-8252] Doesn't display warn stack trace for stomp (regression compared to 5.15.x)
new f7f52cc Merge pull request #695 from jbonofre/AMQ-8252
ceaeaa9 is described below
commit ceaeaa986b4f9a233fe7b24f0e7b3b5c2dcfa9ec
Author: Jean-Baptiste Onofré <jb...@apache.org>
AuthorDate: Mon Aug 2 13:25:56 2021 +0200
[AMQ-8252] Doesn't display warn stack trace for stomp (regression compared to 5.15.x)
---
.../main/java/org/apache/activemq/broker/TransportConnection.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/activemq-broker/src/main/java/org/apache/activemq/broker/TransportConnection.java b/activemq-broker/src/main/java/org/apache/activemq/broker/TransportConnection.java
index eec0aea..44b7968 100644
--- a/activemq-broker/src/main/java/org/apache/activemq/broker/TransportConnection.java
+++ b/activemq-broker/src/main/java/org/apache/activemq/broker/TransportConnection.java
@@ -247,7 +247,12 @@ public class TransportConnection implements Connection, Task, CommandVisitor {
}
private boolean suppressed(IOException e) {
- return !connector.isWarnOnRemoteClose() && ((e instanceof SocketException && e.getMessage().indexOf("reset") != -1) || e instanceof EOFException);
+ return (isStomp() || !connector.isWarnOnRemoteClose()) && ((e instanceof SocketException && e.getMessage().indexOf("reset") != -1) || e instanceof EOFException);
+ }
+
+ private boolean isStomp() {
+ URI uri = connector.getUri();
+ return uri != null && uri.getScheme() != null && uri.getScheme().indexOf("stomp") != -1;
}
/**