clebertsuconic commented on code in PR #4840:
URL: https://github.com/apache/activemq-artemis/pull/4840#discussion_r1513285024


##########
artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/proton/AMQPConnectionContext.java:
##########
@@ -378,6 +389,16 @@ public AMQPConnectionCallback getConnectionCallback() {
       return connectionCallback;
    }
 
+   public void exception(Throwable e) {
+      logger.warn(e.getMessage(), e);
+      ErrorCondition error = new ErrorCondition();
+      error.setCondition(AmqpError.INTERNAL_ERROR);
+      error.setDescription("Unrecoverable error: " + (e.getMessage() == null ? 
e.getClass().getSimpleName() : e.getMessage()));
+      getHandler().getConnection().setCondition(error);
+      getHandler().getConnection().close();
+      flush();
+   }

Review Comment:
   I added a commit to be squashed addressing this



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to