diff options
| -rw-r--r-- | codegen.py | 1 | ||||
| -rw-r--r-- | src/rabbit_channel.erl | 3 |
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, |
