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 | d3f4271a2916df4028c1d2daa614ea955154e78e (patch) | |
| tree | ad7f01d0e3c508079c558b79297cf7873d17c44d /src | |
| parent | 5d033df8b6b56507a50f26ab7db0132fe51583ee (diff) | |
| download | rabbitmq-server-git-d3f4271a2916df4028c1d2daa614ea955154e78e.tar.gz | |
Rename unknown protocol to none, fix tests.
Diffstat (limited to 'src')
| -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 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}}}) -> |
