Skip to content

Commit 09ed8fd

Browse files
committed
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 #13670
1 parent 5a9482d commit 09ed8fd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

deps/rabbitmq_stream/src/rabbit_stream_reader.erl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3221,7 +3221,9 @@ notify_connection_closed(#statem_data{
32213221
{client_properties, ClientProperties}],
32223222
rabbit_event:notify(connection_closed,
32233223
augment_infos_with_user_provided_connection_name(EventProperties,
3224-
Connection)).
3224+
Connection));
3225+
notify_connection_closed(#statem_data{}) ->
3226+
ok.
32253227

32263228
handle_frame_post_close(_Transport,
32273229
Connection,

0 commit comments

Comments
 (0)