-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Labels
Team:Elastic-AgentLabel for the Agent teamLabel for the Agent teambugSomething isn't workingSomething isn't workingv7.11.0
Description
The client uses WithContext to create a context for signaling shutdown to sub go-routines. This seems to make the context leak when the workers return without cancelling the context. The cancel function must be run always.
It seams the context that is generated on 'Start' is leaked at least if the Dial fails. The workaround is to call Stop always. There or other contexts that are generated via WithCancel, that look suspiciously like leaks, but I didn't check if that is the case.
Metadata
Metadata
Assignees
Labels
Team:Elastic-AgentLabel for the Agent teamLabel for the Agent teambugSomething isn't workingSomething isn't workingv7.11.0