summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klishin <michael@rabbitmq.com>2014-08-01 11:55:09 +0400
committerMichael Klishin <michael@rabbitmq.com>2014-08-01 11:55:09 +0400
commit64241c5d6bd4bedc191394131a628b1c2fa4a7ab (patch)
tree7ac2fd281b71ba17bc5faf865342bb2750f1cfdb
parent5b5f2b6d55580f9039127a02afa1f6add4045c93 (diff)
downloadrabbitmq-server-64241c5d6bd4bedc191394131a628b1c2fa4a7ab.tar.gz
Let exception handler do all the handshake failure logging
-rw-r--r--src/rabbit_reader.erl5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/rabbit_reader.erl b/src/rabbit_reader.erl
index fd5dc208..e6e94e28 100644
--- a/src/rabbit_reader.erl
+++ b/src/rabbit_reader.erl
@@ -596,13 +596,10 @@ handle_exception(State = #v1{connection = #connection{protocol = Protocol},
State1 = close_connection(terminate_channels(State)),
ok = send_on_channel0(State1#v1.sock, CloseMethod, Protocol),
State1;
-handle_exception(State = #v1{connection_state = tuning,
- connection = #connection{name = S}}, Channel, Reason) ->
+handle_exception(State = #v1{connection_state = tuning}, Channel, Reason) ->
%% We don't trust the client at this point - force them to wait
%% for a bit so they can't DOS us with repeated failed logins etc.
timer:sleep(?SILENT_CLOSE_DELAY * 1000),
- log(error, "AMQP connection ~p (~s) handshake error:~n~p~n",
- [self(), S, Reason]),
throw({handshake_error, State#v1.connection_state, Channel, Reason}).
%% we've "lost sync" with the client and hence must not accept any