mirror of https://github.com/apache/activemq.git
Use largest incoming capaity value, broker will do flow control based on destination policies.
This commit is contained in:
parent
9b6f419d44
commit
ba519d8bd3
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue