Skip to content

Conversation

@wrangelvid
Copy link
Contributor

Description

After using SetConfiguration I found that the new ice servers have not been used. Turns out after creating a peer connection the ice gatherer is created with the current configuration, but it is never updated with new servers when the configuration changes

This pr should fix the issue and implement the spec properly. We just need to wait on pion/ice#866 to land.

@wrangelvid wrangelvid self-assigned this Jan 6, 2026
@wrangelvid wrangelvid force-pushed the fix_set_configuration branch from 04c1161 to 9e04d64 Compare January 9, 2026 04:20
@codecov
Copy link

codecov bot commented Jan 9, 2026

Codecov Report

❌ Patch coverage is 84.00000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.12%. Comparing base (cbaff19) to head (b31a179).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
icegatherer.go 88.88% 1 Missing and 1 partial ⚠️
peerconnection.go 71.42% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3339      +/-   ##
==========================================
+ Coverage   85.02%   85.12%   +0.09%     
==========================================
  Files          80       80              
  Lines        9512     9532      +20     
==========================================
+ Hits         8088     8114      +26     
+ Misses       1001      998       -3     
+ Partials      423      420       -3     
Flag Coverage Δ
go 85.12% <84.00%> (+0.09%) ⬆️

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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@wrangelvid wrangelvid force-pushed the fix_set_configuration branch from 9e04d64 to 1607cad Compare January 9, 2026 04:26
@wrangelvid
Copy link
Contributor Author

@JoTurk thanks for getting the pion/ice PR in so quickly. This is ready for review.

@wrangelvid wrangelvid requested a review from JoTurk January 9, 2026 04:32
Copy link
Member

@JoTurk JoTurk left a comment

Choose a reason for hiding this comment

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

Changes look good to me overall, and makes us closer to the browser behavior. thank you.

icegatherer.go Outdated
// UpdateServers updates the ICE servers and gather policy.
// If called before gathering starts, the new servers will be used for initial gathering.
// If called after gathering has started, the new servers will be used on the next ICE restart.
func (g *ICEGatherer) UpdateServers(servers []ICEServer, policy ICETransportPolicy) error {
Copy link
Member

Choose a reason for hiding this comment

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

I think this should be private.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@wrangelvid wrangelvid force-pushed the fix_set_configuration branch from 1607cad to b31a179 Compare January 9, 2026 13:15
Copy link
Member

@JoTurk JoTurk left a comment

Choose a reason for hiding this comment

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

Cool, also thank you for updating the spec comments.

@JoTurk JoTurk merged commit b31a179 into pion:master Jan 9, 2026
29 of 30 checks passed
@wrangelvid wrangelvid deleted the fix_set_configuration branch January 9, 2026 16:37
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