Skip to content

Cancel gathering before removing candidates#842

Merged
boks1971 merged 2 commits into
masterfrom
raja_gather_cancel
Dec 4, 2025
Merged

Cancel gathering before removing candidates#842
boks1971 merged 2 commits into
masterfrom
raja_gather_cancel

Conversation

@boks1971

@boks1971 boks1971 commented Dec 3, 2025

Copy link
Copy Markdown
Contributor

Description

When ICE agent is closed, the connections from UDP/TCP mux were removed before gathering was canceled. This led to candidate gathering adding entries to UDP mux which were not cleaned up.

Also passing into logger to the mux as ICE agent logger could have more context and is useful to see the context.

@boks1971 boks1971 requested review from JoTurk and Sean-Der December 3, 2025 13:44
Comment thread agent.go
}

agent.loop = taskloop.New(func() {
agent.gatherCandidateCancel()

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the main change. Other bits are passing around ICE agent logger into TCP mux. The ICE agent logger could have more context and could be useful.

Guess, I should add it to UDP mux also?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh well, this breaks API checks. Will probably remove it then.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, cleaned them up. This is the only change now.

@codecov

codecov Bot commented Dec 3, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.27%. Comparing base (a691585) to head (d93b237).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #842      +/-   ##
==========================================
+ Coverage   87.12%   87.27%   +0.14%     
==========================================
  Files          43       43              
  Lines        4825     4825              
==========================================
+ Hits         4204     4211       +7     
+ Misses        446      440       -6     
+ Partials      175      174       -1     
Flag Coverage Δ
go 87.27% <100.00%> (+0.14%) ⬆️

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cnderrauber cnderrauber left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job for fixing this!!

When ICE agent is closed, the connections from UDP/TCP mux were removed
before gathering was canceled. This led to candidate gathering adding
entries to UDP mux which were not cleaned up.
@boks1971 boks1971 merged commit e5b161b into master Dec 4, 2025
19 checks passed
@boks1971 boks1971 deleted the raja_gather_cancel branch December 4, 2025 06:21
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