Use largest incoming capaity value, broker will do flow control based on
destination policies.
This commit is contained in:
Timothy Bish 2014-05-23 11:26:55 -04:00
parent 9b6f419d44
commit ba519d8bd3
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}