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
commit85918481172ed1f2b9c684d337a35874af91c7b0 (patch)
tree8ea7077bccffc6dcf04289e026a7b98c89a737f7
parent0e00781c73b3b639b5095730d84ab1cea8507d7f (diff)
downloadrabbitmq-server-git-85918481172ed1f2b9c684d337a35874af91c7b0.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 c6bd2973e7..a7928c78de 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.