Ignore stream connections in unexpected states

A connection which terminated before it was fully established
would lead to a function_clause, since metadata is not available
to really call notify_connection_closed. We can just ignore such
connections and not notify about them.

Resolves https://github.com/rabbitmq/rabbitmq-server/discussions/13670
This commit is contained in:
Michal Kuratczyk 2025-04-02 23:38:55 +02:00
parent 5a9482dfef
commit 09ed8fdc07
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -3221,7 +3221,9 @@ notify_connection_closed(#statem_data{
{client_properties, ClientProperties}],
rabbit_event:notify(connection_closed,
augment_infos_with_user_provided_connection_name(EventProperties,
Connection)).
Connection));
notify_connection_closed(#statem_data{}) ->
ok.
handle_frame_post_close(_Transport,
Connection,