Skip to content

Conversation

@hugh-j
Copy link

@hugh-j hugh-j commented Nov 6, 2018

One of RabbitMQ's extensions to AMQP is to have a broker:

send to the client a basic.cancel in the case of ... unexpected consumer cancellations.

The documentation for the extension describes these "unexpected consumer cancellations" as:

events, such as the queue being deleted, or in a clustered scenario, the node on which the queue is located failing, will cause the consumption to be cancelled, but the client channel will not be informed, which is frequently unhelpful.

The default behavior for both bunny and march_hare is to present support for this capability when connecting to RabbitMQ. Therefore, by default ActionSubscribers will receive basic.cancel signals when on the the scenarios described above occurs. Currently, when that happens, the ActionSubscriber will not attempt to resume consumption but rather will sit idle because no further messages will be sent from the broker on that channel. This change attempts to rebuild the subscription so consumption of messages will resume after the basic.cancel signal is received.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants