diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2010-07-05 18:46:16 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2010-07-05 18:46:16 +0100 |
commit | 60960db6f5a8533037f7394726bcac75f1a9fdde (patch) | |
tree | ad7f01d0e3c508079c558b79297cf7873d17c44d | |
parent | be59b5f948efb66595238bd7e9e497510fdae452 (diff) | |
download | rabbitmq-server-60960db6f5a8533037f7394726bcac75f1a9fdde.tar.gz |
Rename unknown protocol to none, fix tests.
-rw-r--r-- | src/rabbit_reader.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rabbit_reader.erl b/src/rabbit_reader.erl index 10118071..bac67b1d 100644 --- a/src/rabbit_reader.erl +++ b/src/rabbit_reader.erl @@ -250,7 +250,7 @@ start_connection(Parent, Deb, Sock, SockTransform) -> frame_max = ?FRAME_MIN_SIZE, vhost = none, client_properties = none, - protocol = unknown}, + protocol = none}, callback = uninitialized_callback, recv_ref = none, connection_state = pre_init, @@ -731,6 +731,8 @@ i(state, #v1{connection_state = S}) -> S; i(channels, #v1{}) -> length(all_channels()); +i(protocol, #v1{connection = #connection{protocol = none}}) -> + none; i(protocol, #v1{connection = #connection{protocol = Protocol}}) -> Protocol:version(); i(user, #v1{connection = #connection{user = #user{username = Username}}}) -> |