Refill credit at a slightly faster rate.
This commit is contained in:
Timothy Bish 2015-10-06 11:33:26 -04:00
parent dc06c8dc75
commit bbcd938032
1 changed files with 2 additions and 2 deletions

View File

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