Skip to content

AutorecoveringConnection fires client shutdown hooks after connection has recovered #135

Closed
@doswell

Description

@doswell

Version - amqp-client-3.6.1

When init is called on AutorecoveringConnection it adds the automatic recovery listener to the shutdownHooks list - Because this is the first entry, any user added shutdown hooks will be called after the automatic recovery.

as a possible solution;
The listener created in addAutomaticRecoverListener would likely need to call each shutdownListener, and omit adding the created listener to the shutdownHooks.
addShutdownListener, removeShutdownListener would only apply to the shutdownHooks list and not add to the delegate.
recoverShutdownListeners would just call addAutomaticRecoverListener.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions