From ba519d8bd3e1f17d5885a48da0b58999eebd2e12 Mon Sep 17 00:00:00 2001 From: Timothy Bish Date: Fri, 23 May 2014 11:26:55 -0400 Subject: [PATCH] https://issues.apache.org/jira/browse/AMQ-5195 Use largest incoming capaity value, broker will do flow control based on destination policies. --- .../apache/activemq/transport/amqp/AmqpProtocolConverter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activemq-amqp/src/main/java/org/apache/activemq/transport/amqp/AmqpProtocolConverter.java b/activemq-amqp/src/main/java/org/apache/activemq/transport/amqp/AmqpProtocolConverter.java index 36a41e6613..f8e56860fc 100644 --- a/activemq-amqp/src/main/java/org/apache/activemq/transport/amqp/AmqpProtocolConverter.java +++ b/activemq-amqp/src/main/java/org/apache/activemq/transport/amqp/AmqpProtocolConverter.java @@ -464,7 +464,7 @@ class AmqpProtocolConverter implements IAmqpProtocolConverter { AmqpSessionContext sessionContext = new AmqpSessionContext(connectionId, nextSessionId++); session.setContext(sessionContext); sendToActiveMQ(new SessionInfo(sessionContext.sessionId), null); - session.setIncomingCapacity(AmqpWireFormat.DEFAULT_MAX_FRAME_SIZE * prefetch); + session.setIncomingCapacity(Integer.MAX_VALUE); session.open(); }