diff options
author | Matthew Sackman <matthew@rabbitmq.com> | 2010-05-27 14:17:25 +0100 |
---|---|---|
committer | Matthew Sackman <matthew@rabbitmq.com> | 2010-05-27 14:17:25 +0100 |
commit | aa89b97aaa40a9a495e5979373f6f02537380d44 (patch) | |
tree | 3aeb3ed8400ea406c0a6e4590fdef46b02d23d1e | |
parent | 329f0874d2eb7c92600fa7ac759095a3676638bf (diff) | |
parent | d7ed530595a13131df9f5e51d42b0d10d4633697 (diff) | |
download | rabbitmq-server-aa89b97aaa40a9a495e5979373f6f02537380d44.tar.gz |
Merging bug21915 onto default. Note that this has some semantic changes which are 'safe' for 0-8 and more in line with 0-9-1. This is: an exclusive queue can only be redeclared in the same connection as created the queue and the redeclaration must also specify exclusivity.
-rw-r--r-- | src/rabbit_reader.erl | 4 |
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. |