mirror of https://github.com/apache/activemq.git
Use more sensible prefetch settings.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1408919 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8387295ade
commit
914e177239
|
@ -84,7 +84,7 @@ class AmqpProtocolConverter {
|
|||
// private CONNECT connect;
|
||||
// private String clientId;
|
||||
// private final String QOS_PROPERTY_NAME = "QoSPropertyName";
|
||||
|
||||
int prefetch = 100;
|
||||
|
||||
TransportImpl protonTransport = new TransportImpl();
|
||||
ConnectionImpl protonConnection = new ConnectionImpl();
|
||||
|
@ -615,7 +615,7 @@ class AmqpProtocolConverter {
|
|||
if( remoteTarget instanceof Coordinator ) {
|
||||
pumpProtonToSocket();
|
||||
receiver.setContext(coordinatorContext);
|
||||
receiver.flow(1024 * 64);
|
||||
receiver.flow(prefetch);
|
||||
receiver.open();
|
||||
pumpProtonToSocket();
|
||||
} else {
|
||||
|
@ -635,7 +635,7 @@ class AmqpProtocolConverter {
|
|||
ProducerContext producerContext = new ProducerContext(producerId, dest);
|
||||
|
||||
receiver.setContext(producerContext);
|
||||
receiver.flow(1024 * 64);
|
||||
receiver.flow(prefetch);
|
||||
ProducerInfo producerInfo = new ProducerInfo(producerId);
|
||||
producerInfo.setDestination(dest);
|
||||
sendToActiveMQ(producerInfo, new ResponseHandler() {
|
||||
|
|
Loading…
Reference in New Issue