Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Include connection name into connection_closed events
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Jan 19, 2016
1 parent d1f96c4 commit 7375646
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rabbit_reader.erl
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@ start_connection(Parent, HelperSup, Deb, Sock) ->
%% socket w/o delay before termination.
rabbit_net:fast_close(Sock),
rabbit_networking:unregister_connection(self()),
rabbit_event:notify(connection_closed, [{pid, self()}])
rabbit_event:notify(connection_closed, [{name, list_to_binary(Name)},
{pid, self()}])
end,
done.

Expand Down

0 comments on commit 7375646

Please sign in to comment.