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

Consumer: move handler initialisation to inside the message receipt callback #35

Merged
merged 1 commit into from
Nov 12, 2018

Conversation

Mulkave
Copy link
Member

@Mulkave Mulkave commented Nov 12, 2018

With this change the handlers are initialised once per message receipt and then destroyed. This would help preserve memory during a consumer session (run-loop) and protect from memory leaks that could be introduced when handling messages by not using the same instance throughout the session (leaks will be destroyed with the instance).

@Mulkave Mulkave self-assigned this Nov 12, 2018
@Mulkave Mulkave merged commit af8f56e into master Nov 12, 2018
@Mulkave Mulkave deleted the fix/handler-memory-management branch November 12, 2018 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants