Skip to content

Don't close candidate on eperm #85

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

Karolk99
Copy link
Contributor

@Karolk99 Karolk99 commented Jun 27, 2025

Closes #82 and also fixes the race condition described in PR 84

@Karolk99 Karolk99 requested a review from mickel8 June 27, 2025 16:07
@Karolk99
Copy link
Contributor Author

The problem with tests seems to be caused by ICEAgent trying to always send a binding request on the same pair, even though it always gets eperm response from the socket.

@Karolk99 Karolk99 force-pushed the 82/dont-close-on-eperm branch from 6a072cf to 3a81786 Compare June 30, 2025 10:23
Copy link

codecov bot commented Jun 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.43%. Comparing base (7552d06) to head (fb8e5da).
Report is 7 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #85      +/-   ##
==========================================
+ Coverage   83.88%   85.43%   +1.55%     
==========================================
  Files          25       25              
  Lines        1837     1868      +31     
==========================================
+ Hits         1541     1596      +55     
+ Misses        296      272      -24     
Files with missing lines Coverage Δ
lib/ex_ice/priv/checklist.ex 100.00% <100.00%> (ø)
lib/ex_ice/priv/ice_agent.ex 87.03% <100.00%> (+0.95%) ⬆️

... and 3 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4854d81...fb8e5da. Read the comment docs.

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

@@ -3013,7 +3013,8 @@ defmodule ExICE.Priv.ICEAgent do
pair = %CandidatePair{
pair
| packets_discarded_on_send: pair.packets_discarded_on_send + 1,
bytes_discarded_on_send: pair.bytes_discarded_on_send + byte_size(raw_req)
bytes_discarded_on_send: pair.bytes_discarded_on_send + byte_size(raw_req),
state: :failed
Copy link
Member

Choose a reason for hiding this comment

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

We need to do this everytime we mark a pair as failed. Can we also add a test for nomination failure?

Suggested change
state: :failed
state: :failed,
valid?: false

@Karolk99 Karolk99 requested a review from mickel8 June 30, 2025 15:46
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.

Eperm results in closing local candidate
2 participants