summaryrefslogtreecommitdiff
path: root/src
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
commitd3f4271a2916df4028c1d2daa614ea955154e78e (patch)
treead7f01d0e3c508079c558b79297cf7873d17c44d /src
parent5d033df8b6b56507a50f26ab7db0132fe51583ee (diff)
downloadrabbitmq-server-git-d3f4271a2916df4028c1d2daa614ea955154e78e.tar.gz
Rename unknown protocol to none, fix tests.
Diffstat (limited to 'src')
-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 10118071df..bac67b1d55 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}}}) ->