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

Avoid leaking tickers #2843

Merged
merged 1 commit into from
Aug 1, 2024
Merged

Avoid leaking tickers #2843

merged 1 commit into from
Aug 1, 2024

Conversation

jech
Copy link
Member

@jech jech commented Aug 1, 2024

In Go 1.22 and earlier, a ticker needs to be explicitly stopped
when it's no longer useful in order to avoid a resource leak.
In Go 1.23 and earlier, an orphaned ticker will eventually be
garbage collected, but it's still more thrifty to stop it early.

Supersedes #2839.

@jech jech mentioned this pull request Aug 1, 2024
Copy link

codecov bot commented Aug 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.92%. Comparing base (cbbb1c2) to head (540885d).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2843      +/-   ##
==========================================
+ Coverage   78.86%   78.92%   +0.06%     
==========================================
  Files          89       89              
  Lines        8317     8317              
==========================================
+ Hits         6559     6564       +5     
+ Misses       1280     1276       -4     
+ Partials      478      477       -1     
Flag Coverage Δ
go 80.51% <ø> (+0.06%) ⬆️
wasm 64.88% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

In Go 1.22 and earlier, a ticker needs to be explicitly stopped
when it's no longer useful in order to avoid a resource leak.
In Go 1.23 and later, an orphaned ticker will eventually be
garbage collected, but it's still more thrifty to stop it early.
@Sean-Der Sean-Der merged commit f29ef99 into pion:master Aug 1, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants