Skip to content

StartEvictor leaks go-routines and also has race conditions that could cause a crash #18

@deepakprabhakara

Description

@deepakprabhakara

Calling StartEvictor multiple times causes a leak since the go-routine doesn't get closed (ticket.Stop() does not close the channel).

Also if StartEvictor is called in succession it could lead to a race condition which causes a crash in line 511 of pool.go since pool.evictor can be set to nil before the range starts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions