mirror of https://github.com/apache/activemq.git
Refill credit at a slightly faster rate.
This commit is contained in:
parent
dc06c8dc75
commit
bbcd938032
|
@ -227,7 +227,7 @@ public class AmqpReceiver extends AmqpAbstractReceiver {
|
|||
rejected.setError(condition);
|
||||
delivery.disposition(rejected);
|
||||
} else {
|
||||
if (getEndpoint().getCredit() <= (getConfiguredReceiverCredit() * .2)) {
|
||||
if (getEndpoint().getCredit() <= (getConfiguredReceiverCredit() * .3)) {
|
||||
LOG.debug("Sending more credit ({}) to producer: {}", getConfiguredReceiverCredit() - getEndpoint().getCredit(), getProducerId());
|
||||
getEndpoint().flow(getConfiguredReceiverCredit() - getEndpoint().getCredit());
|
||||
}
|
||||
|
@ -248,7 +248,7 @@ public class AmqpReceiver extends AmqpAbstractReceiver {
|
|||
}
|
||||
});
|
||||
} else {
|
||||
if (getEndpoint().getCredit() <= (getConfiguredReceiverCredit() * .2)) {
|
||||
if (getEndpoint().getCredit() <= (getConfiguredReceiverCredit() * .3)) {
|
||||
LOG.debug("Sending more credit ({}) to producer: {}", getConfiguredReceiverCredit() - getEndpoint().getCredit(), getProducerId());
|
||||
getEndpoint().flow(getConfiguredReceiverCredit() - getEndpoint().getCredit());
|
||||
session.pumpProtonToSocket();
|
||||
|
|
Loading…
Reference in New Issue