tabish121 commented on code in PR #5713:
URL: https://github.com/apache/activemq-artemis/pull/5713#discussion_r2115972525


##########
artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/AMQConsumer.java:
##########
@@ -306,7 +306,7 @@ public int handleDeliver(MessageReference reference, 
ICoreMessage message) {
          int size = dispatch.getMessage().getSize();
          reference.setProtocolData(MessageId.class, 
dispatch.getMessage().getMessageId());
          session.deliverMessage(dispatch);
-         currentWindow.decrementAndGet();
+         currentWindow.updateAndGet(i -> i > 0 ? i - 1 : i);

Review Comment:
   The test is a STOMP test that only uses the core client and doesn't cross 
into this changed openwire code so must be unrelated.



-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org
For additional commands, e-mail: gitbox-h...@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact


Reply via email to