mirror of
https://github.com/apache/activemq.git
synced 2025-02-25 11:35:05 +00:00
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…
x
Reference in New Issue
Block a user