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
commit557c3f72986b9b1691dcc1ec0ec6a7ad139a0cbb (patch)
treee42af15a6facd28629f54919e0b63eb4d5ecddc6
parente5e8a241923789731eaad68030549acf0d0d030b (diff)
downloadrabbitmq-server-557c3f72986b9b1691dcc1ec0ec6a7ad139a0cbb.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 3d4c2e2b..230d785e 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 51fc5c75..911c5352 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,