Skip to content

use of time.After is problematic #14

@flowchartsman

Description

@flowchartsman

https://github.com/papertrail/go-tail/blob/master/follower/follower.go#L220 will create a new *time.Timer for every iteration of the event loop, and this timer will not be cleaned up until its 10 seconds expire. For busy logs, this will be a problem and could explain #9.

Recommend using time.Newtimer and stopping and resetting it as appropriate

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions