Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*: fix memory leak introduced by timer.After #6720

Merged
merged 11 commits into from
Jul 3, 2023
Merged

Commits on Jun 29, 2023

  1. *: fix memory leak introduced by timer.After

    Signed-off-by: lhy1024 <admin@liudos.us>
    lhy1024 committed Jun 29, 2023
    Configuration menu
    Copy the full SHA
    1ae3f52 View commit details
    Browse the repository at this point in the history
  2. add timerPool.Put

    Signed-off-by: lhy1024 <admin@liudos.us>
    lhy1024 committed Jun 29, 2023
    Configuration menu
    Copy the full SHA
    b5c5c68 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2023

  1. need be careful to use Timer.Reset

    Signed-off-by: lhy1024 <admin@liudos.us>
    lhy1024 committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    5a56675 View commit details
    Browse the repository at this point in the history
  2. 1. reduce unnecessary continue

    2. replace timer with ticker in for-retry
    3. add reset prefunc in lease.go
    
    Signed-off-by: lhy1024 <admin@liudos.us>
    lhy1024 committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    135659c View commit details
    Browse the repository at this point in the history
  3. use timerpool

    Signed-off-by: lhy1024 <admin@liudos.us>
    lhy1024 committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    e37073f View commit details
    Browse the repository at this point in the history
  4. copy again to avoid import from pd/pkg in client

    reset ticker to support dynamic config
    
    Signed-off-by: lhy1024 <admin@liudos.us>
    lhy1024 committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    24cd924 View commit details
    Browse the repository at this point in the history
  5. address comments

    Signed-off-by: lhy1024 <admin@liudos.us>
    lhy1024 committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    3bf1203 View commit details
    Browse the repository at this point in the history
  6. fix lint

    Signed-off-by: lhy1024 <admin@liudos.us>
    lhy1024 committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    818cea5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a13cd3e View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2023

  1. fix other timer/ticker stop

    Signed-off-by: lhy1024 <admin@liudos.us>
    lhy1024 committed Jul 3, 2023
    Configuration menu
    Copy the full SHA
    a40b03a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ac7bb65 View commit details
    Browse the repository at this point in the history