diff options
| author | Matthias Radestock <matthias@rabbitmq.com> | 2012-02-06 15:02:10 +0000 |
|---|---|---|
| committer | Matthias Radestock <matthias@rabbitmq.com> | 2012-02-06 15:02:10 +0000 |
| commit | ac839d16d0b951ce2dbf338a35aada910033e702 (patch) | |
| tree | c9bd8853d1915a19119df1d608c53e7957e25136 /include | |
| parent | c16d3a27f9eabefab3a6d7e248997ee837819127 (diff) | |
| download | rabbitmq-server-git-ac839d16d0b951ce2dbf338a35aada910033e702.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.hrl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rabbit.hrl b/include/rabbit.hrl index 735b47204c..faf3059ac7 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">>). |
