Skip to content
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

fix: prevent metrics leak when authenticate fails #2205

Merged
merged 1 commit into from
Apr 13, 2022

Conversation

Stephan14
Copy link
Contributor

@Stephan14 Stephan14 commented Apr 5, 2022

Broker register metrics name to registeredMetrics and then
authenticate to broker by socket, when authenticate failed many times,
the registeredMetrics is slice and will append a metrics name many
times

Fixes #1960

Broker register metrics name to `registeredMetrics` and then
authenticate to broker by socket, when authenticate failed many times,
the `registeredMetrics` is slice and will append a metrics name many
times
@dnwe dnwe changed the title fix: fix metrics leak when authenticate failed fix: prevent metrics leak when authenticate fails Apr 13, 2022
Copy link
Collaborator

@dnwe dnwe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks good catch! The changes to fix this look good to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Memory leak when broker authenticate failed
2 participants