diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2010-07-20 12:54:12 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2010-07-20 12:54:12 +0100 |
commit | 557c3f72986b9b1691dcc1ec0ec6a7ad139a0cbb (patch) | |
tree | e42af15a6facd28629f54919e0b63eb4d5ecddc6 | |
parent | e5e8a241923789731eaad68030549acf0d0d030b (diff) | |
download | rabbitmq-server-557c3f72986b9b1691dcc1ec0ec6a7ad139a0cbb.tar.gz |
Make more consistent with bug 22889 - see comment 83 on that bug
-rw-r--r-- | codegen.py | 1 | ||||
-rw-r--r-- | src/rabbit_channel.erl | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -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, |