summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2012-02-06 15:02:10 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2012-02-06 15:02:10 +0000
commitbf7e4614aea1a3448cb8176b97e1990218bebc0b (patch)
treec9bd8853d1915a19119df1d608c53e7957e25136 /include
parente69b6307256e18678f688ed655ea4f1b25840388 (diff)
downloadrabbitmq-server-bf7e4614aea1a3448cb8176b97e1990218bebc0b.tar.gz
tweak credit_flow logic
- make credit specs contain the InitialCredit and MoreCreditAfter. This is more intuitive and means the message sender only needs to look at the former and the receiver at the latter. - narrow the condition on which handle_bump_msg invokes unblock - it only needs to do that on *transition* from =< 0 to > 0. - refactor: extract process dict update - cosmetic: more logical order of exported functions
Diffstat (limited to 'include')
-rw-r--r--include/rabbit.hrl2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rabbit.hrl b/include/rabbit.hrl
index 735b4720..faf3059a 100644
--- a/include/rabbit.hrl
+++ b/include/rabbit.hrl
@@ -95,7 +95,7 @@
-define(HIBERNATE_AFTER_MIN, 1000).
-define(DESIRED_HIBERNATE, 10000).
--define(CREDIT_DISC_BOUND, {2000, 1500}).
+-define(CREDIT_DISC_BOUND, {2000, 500}).
-define(ROUTING_HEADERS, [<<"CC">>, <<"BCC">>]).
-define(DELETED_HEADER, <<"BCC">>).