+
Skip to content

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

Closed
@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

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载