summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2010-07-05 18:46:16 +0100
committerSimon MacMullen <simon@rabbitmq.com>2010-07-05 18:46:16 +0100
commit60960db6f5a8533037f7394726bcac75f1a9fdde (patch)
treead7f01d0e3c508079c558b79297cf7873d17c44d
parentbe59b5f948efb66595238bd7e9e497510fdae452 (diff)
downloadrabbitmq-server-60960db6f5a8533037f7394726bcac75f1a9fdde.tar.gz
Rename unknown protocol to none, fix tests.
-rw-r--r--src/rabbit_reader.erl4
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}}}) ->