diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-19 14:47:21 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-19 14:47:21 +0300 |
| commit | 3353000f05ae1492763c33cc1894673dba64326a (patch) | |
| tree | 30e72846d250923af473b567ef60caf8b2239bb3 /docs | |
| parent | 53a599e763eb8f105dd12c8e0a2a50e2a850e4d6 (diff) | |
Fix time.After timer leak in probe retry loop
Replace time.After(delay) with time.NewTimer inside the retry backoff
select in FFProber.Probe. time.After leaks the underlying timer until
it fires, so when ctx.Done() wins the select the timer would otherwise
linger for up to 30s. NewTimer + Stop() on the ctx.Done branch lets the
runtime release it immediately.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions
