-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix an issue where links are kept alive
even though we are unable to create an Amqp receiver due to operation timeout. The problem is that `rheaReceiver` and `receiver` are created when the Promise instance is created, however, they are not removed when rejecting due to operation timeout. So the created objects are kept by `rhea` as long as the connection is alive. In this case there's no way for outside caller to do the clean up because `receiver` is not returned by the `resolve` callback. This PR adds cleanup for the `actionAfterTimeout` code path.
- Loading branch information
1 parent
6ff5c9c
commit 079af75
Showing
3 changed files
with
15 additions
and
2 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
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