Skip to content

contexts: always call returned cancelFunc #822

Closed
@cryptix

Description

Hi,

according to this upstream change, we can't ignore the returned cancelFunc of a context otherweise cleanup of goroutines blocking on ctx.Done() can't happend.

I found at one such case in routing/dht/records.go and started a branch (dontIgnoreCancelFuncs) with a fix but wanted to wait with a PR until we are sure there arn't more easy cases lying around.

Activity

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

Metadata

Assignees

No one assigned

    Labels

    kind/bugA bug in existing code (including security flaws)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions