diff options
| author | Robert Godfrey <rgodfrey@apache.org> | 2014-08-19 14:22:20 +0000 |
|---|---|---|
| committer | Robert Godfrey <rgodfrey@apache.org> | 2014-08-19 14:22:20 +0000 |
| commit | ae190edb15efd59c347c06288bf93342e7667eee (patch) | |
| tree | 9b294d931aa6693148b16f5231d824e74eb337ff /qpid/java/broker-plugins | |
| parent | 8abe5e8a34bda4a1fd1703b597b75a9c57ae8316 (diff) | |
| download | qpid-python-ae190edb15efd59c347c06288bf93342e7667eee.tar.gz | |
QPID-6000 : [Java] Address review comments from Alex
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1618871 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/broker-plugins')
| -rw-r--r-- | qpid/java/broker-plugins/amqp-0-10-protocol/src/main/java/org/apache/qpid/server/protocol/v0_10/ConsumerTarget_0_10.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qpid/java/broker-plugins/amqp-0-10-protocol/src/main/java/org/apache/qpid/server/protocol/v0_10/ConsumerTarget_0_10.java b/qpid/java/broker-plugins/amqp-0-10-protocol/src/main/java/org/apache/qpid/server/protocol/v0_10/ConsumerTarget_0_10.java index ec0c38ec42..db7ee54cb2 100644 --- a/qpid/java/broker-plugins/amqp-0-10-protocol/src/main/java/org/apache/qpid/server/protocol/v0_10/ConsumerTarget_0_10.java +++ b/qpid/java/broker-plugins/amqp-0-10-protocol/src/main/java/org/apache/qpid/server/protocol/v0_10/ConsumerTarget_0_10.java @@ -285,6 +285,7 @@ public class ConsumerTarget_0_10 extends AbstractConsumerTarget implements FlowC else if(!msgCompressed && compressionSupported && (messageProps == null || messageProps.getContentEncoding()==null) + && body != null && body.remaining() > _session.getConnection().getMessageCompressionThreshold()) { byte[] compressed = GZIPUtils.compressBufferToArray(body); |
