summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2010-07-20 12:54:12 +0100
committerSimon MacMullen <simon@rabbitmq.com>2010-07-20 12:54:12 +0100
commita4d03b70db850684671068ccc82a21e959645646 (patch)
treee42af15a6facd28629f54919e0b63eb4d5ecddc6
parent9fea75aea00f8bb545ee9aa4834bf73d405421e9 (diff)
downloadrabbitmq-server-git-a4d03b70db850684671068ccc82a21e959645646.tar.gz
Make more consistent with bug 22889 - see comment 83 on that bug
-rw-r--r--codegen.py1
-rw-r--r--src/rabbit_channel.erl3
2 files changed, 3 insertions, 1 deletions
diff --git a/codegen.py b/codegen.py
index 3d4c2e2b6e..230d785eba 100644
--- a/codegen.py
+++ b/codegen.py
@@ -481,7 +481,6 @@ def genHrl(spec):
methods = spec.allMethods()
printFileHeader()
- print "-define(PROTOCOL_VERSION_REVISION, %d)." % (spec.revision)
print "-define(PROTOCOL_PORT, %d)." % (spec.port)
for (c,v,cls) in spec.constants:
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index 51fc5c75fd..911c535246 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -402,6 +402,9 @@ handle_method(#'channel.close'{}, _, State = #ch{writer_pid = WriterPid}) ->
ok = rabbit_writer:send_command(WriterPid, #'channel.close_ok'{}),
stop;
+handle_method(#'access.request'{},_, State) ->
+ {reply, #'access.request_ok'{ticket = 1}, State};
+
handle_method(#'basic.publish'{}, _, #ch{flow = #flow{client = false}}) ->
rabbit_misc:protocol_error(
command_invalid,