-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Breaking public API change: Make Bunny::Channel#close raise an except…
…ion on a closed channel The current behaviour is to time out on a network request, which makes no sense at all, as #528 explains. This is also what other clients do. Making the method a no-op was also an option but doing so might make genuine channel-level exceptions harder to discover for the user. While at it, report the last seen channel.close exception. This is both informative and consistent with what RabbitMQ Java client does: it provides a "shutdown reason" (e.g. a protocol exception if any) together with the "already closed" exception. Since this is a minor breaking public API change, it won't be backported to 2.7.x. Fixes #528.
- Loading branch information
1 parent
b1d99d9
commit 9df7cb0
Showing
2 changed files
with
56 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters