activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gaohoward <...@git.apache.org>
Subject [GitHub] activemq-artemis pull request #1960: ARTEMIS-406 STOMP acknowledgements shou...
Date Wed, 21 Mar 2018 14:15:30 GMT
Github user gaohoward commented on a diff in the pull request:

    https://github.com/apache/activemq-artemis/pull/1960#discussion_r176095964
  
    --- Diff: artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompSession.java
---
    @@ -154,12 +154,16 @@ public int sendMessage(MessageReference ref,
                 encoder.encode(buffer, bodySize);
                 encoder.close();
              } else {
    -            buffer = coreMessage.getReadOnlyBodyBuffer();
    +            if (Boolean.TRUE.equals(serverMessage.getBooleanProperty(Message.HDR_LARGE_COMPRESSED)))
{
    +               buffer = coreMessage.getBodyBuffer();
    --- End diff --
    
    this is because we need to decompress the content before send to clients. If readonly
we can't write into it.


---

Mime
View raw message