summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2013-02-15 18:55:47 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2013-02-15 18:55:47 +0000
commita77f31a8bbbdf93637207c3d85cbb3fa41691a93 (patch)
treeb183727247d3beb8163382a4fa6e42afd754d1c1
parent8e613f029f032a24948c8f63a8d4b9d33cfa5af8 (diff)
downloadrabbitmq-server-a77f31a8bbbdf93637207c3d85cbb3fa41691a93.tar.gz
explain a reader sublety
-rw-r--r--src/rabbit_reader.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rabbit_reader.erl b/src/rabbit_reader.erl
index 203ec3f0..af331a62 100644
--- a/src/rabbit_reader.erl
+++ b/src/rabbit_reader.erl
@@ -636,7 +636,9 @@ process_frame(Frame, Channel, State) ->
post_process_frame({method, 'channel.close_ok', _}, ChPid, State) ->
channel_cleanup(ChPid),
- %% this is not strictly necessary, but more obviously correct
+ %% This is not strictly necessary, but more obviously
+ %% correct. Also note that we do not need to call maybe_close/1
+ %% since we cannot possibly be in the 'closing' state.
control_throttle(State);
post_process_frame({content_header, _, _, _, _}, _ChPid, State) ->
maybe_block(State);