Skip to content

Conversation

@waquidvp
Copy link

Fixes #1206

This reverts part of a change made in #1140. The description on that PR mentions:

context canceling that could cause memories leaks in the long term.

However, this causes the monitorCtx to remain cancelled for subsequent iterations which as seen in the linked issue can cause the monitor to not start again after failing once.

I am however not sure if the memory leak mentioned in the original change would now be introduced again. If the defer is what would cause it, the defer could be removed since cancel is called later.

@jrasell
Copy link
Member

jrasell commented Dec 9, 2025

Hi @waquidvp and thanks for raising this PR. I suspect reverting the change will re-introduce the identified memory leak, so we will want to find a different solution. I'll keep this PR open, so whoever looks into the linked issue can see the full detail and decide how to move forward. Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

Updated config file not being loaded on reload signal

2 participants