-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Service Bus] Fix MaxListenersExceeded for management client #11738
Merged
HarshaNalluru
merged 9 commits into
Azure:master
from
HarshaNalluru:harshan/sb/issue/renewlock-listener-exceeded-warning
Oct 19, 2020
Merged
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
c255d09
fix MaxListenersExceeded for management client
HarshaNalluru 5788a2b
comment update
HarshaNalluru 9c9c8a7
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-js in…
HarshaNalluru 211f440
Add listener for receiver_error inside createRheaLink instead of chec…
HarshaNalluru 3431729
Typo
HarshaNalluru 49020f1
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-js in…
HarshaNalluru b6a36b2
changelog
HarshaNalluru f5fcbd2
formatting
HarshaNalluru c0d7fd4
changelog - mention the warning
HarshaNalluru File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are options that you can pass to initLink for callbacks that are intended to be only set once - if the ones you're setting aren't there we should add them and register them there.
That should eliminate the need to do this kind of checking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did look into that. There are complications, however.
"rhea" doesn't allow setting only the "onError" handler in the options if it is not accompanied by an "onMessage" handler.
Our
onMessage
handler("message" event) is set at core-amqp and we are trying to pass theonError
handler in the options.If we want to pass both
onError
andonMessage
through core-amqp, we'd need to update the core-amqp's logic drastically, which would also impact event-hubs I guess.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have the lock to protect you here so you can do one-time init-only modification to the receiver.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, updated createRheaLink instead to add the listener and thus, this would happen as a one-time init-only modification.