Skip to content

Expose configuration for ice connection attempts#90

Merged
rainliu merged 2 commits into
webrtc-rs:masterfrom
cuchaz:ice-timings
May 3, 2026
Merged

Expose configuration for ice connection attempts#90
rainliu merged 2 commits into
webrtc-rs:masterfrom
cuchaz:ice-timings

Conversation

@cuchaz
Copy link
Copy Markdown
Contributor

@cuchaz cuchaz commented Apr 20, 2026

If my analysis is right, the default ICE configuration allows ICE to attempt to connect a candidate for up to 1.4 seconds before marking the candidate as failed. In my app, I'd like to allocate more time to connection attempts. This PR exposes the configuration options that allow re-configuring that behavior, to allow longer connection attempt times.

I think the ice_interval setting was intended to be an internal implementation detail? But considering the effect of this setting on ICE connection attempts, this PR promotes it to public configuration. Maybe that's not something you want? Or maybe my analysis is wrong? Let me know what you think of these changes.

Thanks,
Jeff

@rainliu
Copy link
Copy Markdown
Member

rainliu commented Apr 24, 2026

LGTM. But please fix fmt warnings.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 24, 2026

Codecov Report

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

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #90   +/-   ##
=======================================
  Coverage   71.23%   71.24%           
=======================================
  Files         442      442           
  Lines       67356    67361    +5     
=======================================
+ Hits        47979    47989   +10     
+ Misses      19377    19372    -5     

☔ 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.

@cuchaz
Copy link
Copy Markdown
Contributor Author

cuchaz commented Apr 28, 2026

Ok, I made the changes suggested by the formatter.

@rainliu rainliu merged commit aae46b7 into webrtc-rs:master May 3, 2026
6 checks passed
@cuchaz cuchaz deleted the ice-timings branch May 3, 2026 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants