Skip to content

Commit

Permalink
Merge pull request #10475 from rabbitmq/mergify/bp/v3.11.x/pr-10473
Browse files Browse the repository at this point in the history
rabbitmq_federation: Handle `shutdown` from upstream (backport #10471) (backport #10473)
  • Loading branch information
michaelklishin authored Feb 3, 2024
2 parents 4dcd7d6 + b530686 commit eadbe83
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deps/rabbitmq_federation/src/rabbit_federation_link_util.erl
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,9 @@ handle_downstream_down(Reason, _Args, State) ->

%% If the upstream channel goes down for an intelligible reason, just
%% log it and die quietly.
handle_upstream_down(shutdown, {Upstream, UParams, XName}, State) ->
rabbit_federation_link_util:connection_error(
remote, {upstream_channel_down, shutdown}, Upstream, UParams, XName, State);
handle_upstream_down({shutdown, Reason}, {Upstream, UParams, XName}, State) ->
rabbit_federation_link_util:connection_error(
remote, {upstream_channel_down, Reason}, Upstream, UParams, XName, State);
Expand Down

0 comments on commit eadbe83

Please sign in to comment.