summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@lshift.net>2010-05-27 08:35:08 +0100
committerMatthias Radestock <matthias@lshift.net>2010-05-27 08:35:08 +0100
commitd7ed530595a13131df9f5e51d42b0d10d4633697 (patch)
tree8ea7077bccffc6dcf04289e026a7b98c89a737f7
parentd2f1abadb3c701e9824c196c88277b59974faefb (diff)
downloadrabbitmq-server-d7ed530595a13131df9f5e51d42b0d10d4633697.tar.gz
change the silent-close delay unit to seconds
for consistency with all the other time interval values Also rename the constant to something a little less specific
-rw-r--r--src/rabbit_reader.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_reader.erl b/src/rabbit_reader.erl
index c6bd2973..a7928c78 100644
--- a/src/rabbit_reader.erl
+++ b/src/rabbit_reader.erl
@@ -52,7 +52,7 @@
-define(NORMAL_TIMEOUT, 3).
-define(CLOSING_TIMEOUT, 1).
-define(CHANNEL_TERMINATION_TIMEOUT, 3).
--define(SLEEP_BEFORE_SILENT_CLOSE, 3000).
+-define(SILENT_CLOSE_DELAY, 3).
%---------------------------------------------------------------------------
@@ -579,7 +579,7 @@ handle_method0(MethodName, FieldsBin, State) ->
%% We don't trust the client at this point - force
%% them to wait for a bit so they can't DOS us with
%% repeated failed logins etc.
- Other -> timer:sleep(?SLEEP_BEFORE_SILENT_CLOSE),
+ Other -> timer:sleep(?SILENT_CLOSE_DELAY * 1000),
throw({channel0_error, Other, CompleteReason})
end
end.