summaryrefslogtreecommitdiff
path: root/src/rabbit_reader.erl
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2012-11-01 14:32:03 +0000
committerSimon MacMullen <simon@rabbitmq.com>2012-11-01 14:32:03 +0000
commit625d96198f16b1586b7f226ed614aa5c2688d39a (patch)
tree92eead55366ce9a54b9a589b2f9b71bd4dcb2019 /src/rabbit_reader.erl
parentb0d900e03df47b496e0a8de206f779fd40d2262c (diff)
downloadrabbitmq-server-625d96198f16b1586b7f226ed614aa5c2688d39a.tar.gz
I know, why don't we get those the right way round? *headdesk*bug23935
Diffstat (limited to 'src/rabbit_reader.erl')
-rw-r--r--src/rabbit_reader.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_reader.erl b/src/rabbit_reader.erl
index 67bfa42a..39502169 100644
--- a/src/rabbit_reader.erl
+++ b/src/rabbit_reader.erl
@@ -202,7 +202,7 @@ start_connection(Parent, ChannelSupSupPid, Collector, StartHeartbeatFun, Deb,
log(info, "accepting AMQP connection ~p (~s)~n", [self(), Name]),
ClientSock = socket_op(Sock, SockTransform),
erlang:send_after(?HANDSHAKE_TIMEOUT * 1000, self(), handshake_timeout),
- {Host, Port, PeerHost, PeerPort} = socket_ends(Sock),
+ {PeerHost, PeerPort, Host, Port} = socket_ends(Sock),
State = #v1{parent = Parent,
sock = ClientSock,
name = list_to_binary(Name),